raven robin burke gam 376. soccer standings burke, 7 ingebristen, 6 buer, 6 bukk, 6 krishnaswamy, 4...

25
Raven Robin Burke GAM 376

Upload: simon-watson

Post on 27-Dec-2015

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Raven

Robin Burke

GAM 376

Page 2: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Soccer standings

Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Page 3: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Playoff round

Bukk vs Buer, (12-1), 12-2.76 Bukk vs Ingebristen, (3-2), 3-4.32 Buer vs Ingebristen, (8-2), 8-2 Record 1-1-1 Tie-breaker

goals scored Buer 10.76 Ingebristen 6.32 Bukk 15

Page 4: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

The Final!

Burke vs Bukk

Page 5: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Syllabus proposal

Current 11/6

• Goal-driven Behavior 11/8

• Goal and Behavior Lab 11/13

• Fuzzy Logic Proposal

11/6• Goal-driven Behavior

11/8• Fuzzy Logic

11/13• Machine Learning

Page 6: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Raven

Demo Controls

right-click to select• see what the bot is doing

right-click again to control• left click fires• right click selects destination• mouse controls firing direction• 1—4 weapon selection• X to release

Page 7: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Game architecture

Game objectsMap

• walls• triggers• spawn points• navigation graph

BotsWeaponsProjectiles

Page 8: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Triggers

Control game state changes Example

"health giver"• if a bot enters a certain region

• its health is increased Many other applications

button opens door, etc. weapon makes a sound

Every update cycle check to see if trigger has been activated apply its effects

Page 9: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Trigger code

Page 10: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

AI Architecture I

What must a bot do?

Page 11: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

High-level decision making

What should I do now?attackhideseek power upheal

Page 12: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Higher-level navigation

Given a locationpath to get to itbest path to get to it

A* search through the navigation graph

Page 13: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Low-level navigation

Don't run into walls, etc. Can be achieved with appropriate

steering behaviors

Page 14: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Perception

Makes a big difference in the playability of the game

NPCs do not have perceptual systems can theoretically know everything about the

game state sometimes this knowledge is needed to

compensate for their stupidity But

designer must be very judicious players can tell if the sensory system is

unfair

Page 15: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Examples

you approach silentlybut the enemy turns around anyway

you hidebut the enemy knows exactly where to

look you avoid the searchlight

but the guards shoot you anyway this is really annoying

Page 16: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Avoiding omniscience

Must construct a perceptual model for each agent

Model filters out data that the agent shouldn't perceive

Typically will model vision hearing pain memory

Page 17: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Nescience

Being blind is almost as bad as being omniscient

ExamplesYou can stand outside the door and

snipe• guard can't see you when you aren't in

the room

Guards walk right over fallen comrade

Page 18: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Avoiding ignorance

Sensory memorydon't forget what you just saw

Short-term location memorytrack "last seen" position of enemies

Use audio cueshearing a weapon fire gives position

information

Page 19: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Perception in Raven

Bots have 180 degree field of view Bots always know when a power-up is available Bots cannot see through walls

expensive calculation! Bots have a memory record

for each opponent records when and where last seen

Weapon firing generates an audio trigger propagated to nearby units gives away position of shooter

Page 20: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Target Selection

Who to shoot? Simple

shoot the closest Many other criteria could be used

shoot the weakest• RB_Bot

shoot the one who is attacking youetc.

Page 21: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Weapon Handling

When to shootnot instantlytoo tough

Where to shootnot totally accuratelysuperhuman

What to useweapon selection

Page 22: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Weapon Selection

Which weapon to select?blaster

• short range, low damageshotgun

• damage disperses with distancemissile launcher

• high damage, slow projectilerail gun

• low damage, instant, long distance

Page 23: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Updating

Cannot update all AI components all the time too expensive not necessary

Movement all the time

• don't run into walls Weapon Selection

less often Sensory Memory

infrequently requires checking visibility

Path Planning infrequently requires search

Page 24: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Systems

Steering Behaviors

Path Planning

Path Following

Decision Making

Weapon Selection

Target Selection

Page 25: Raven Robin Burke GAM 376. Soccer standings Burke, 7 Ingebristen, 6 Buer, 6 Bukk, 6 Krishnaswamy, 4 Lobes, 3 Borys, 2 Rojas, 2 Bieneman, 2

Part A of Lab