staalmedia: designing intelligence

23
Designing Intelligence Yoeri Staal @YoeriStaal [email protected]

Upload: devgamm-conference

Post on 18-Jul-2015

569 views

Category:

Technology


0 download

TRANSCRIPT

Designing Intelligence

Yoeri Staal@YoeriStaal [email protected]

Adding AI to your game End of development,

time to put in AI! How to connect

everything?

Game Theory A game is a series of

decisions Info goes in: board

state, options Decision comes out:

pick a possible move Make use of statistics

Game of the Goose Throw a dice, move

that many steps. First to the end wins Not a game!

Rock, Paper, Scissors Pick any of 3

gestures Each gesture beats

one other

Turing Test Impossible to

distinguish human from computer

AI can pretend to be a human opponent

AI can replace a lost player

Artificial Intelligence Search Problems BEST: Find the best

solution from a range FAST: Find a good

enough solution fast Making good decision

= finding a good solution

Racing Game Individual opponents Multiplayer / Single Traffic is also AI Rubber Band

Intelligent Agents Autonomous entities Observe through

sensors Acts upon

environment using actuators

Intelligent Agents Autonomous entities Observe through

sensors Acts upon

environment using actuators

Emotions Change parameters

based on events Aggressive,

Defensive, Panic, Revenge...

Class Strategies

Platformer Player vs World Run, jump and shoot

Trial and Error Limited number of

options Calculate best from

many tries Pick best or retry

(TAS) AI can try without

actually acting

Real Time Strategy / Sports

Player (human/AI) controls a team

Each unit is also an agent

Self-Organizing Systems Ants leave

pheromones, path to food

Equivalent to a shortcut

Shooter Individual agents Big difference

monsters and soldiers

Machine Learning Machine Learning to

study patterns Might classify player

strategy

Neural Networks Predict player

behavior Guard favorite spots Ambush player

Fighting Game Player vs Player Remember combo's Timing of buttons

Imperfection and Randomness

AI can input combo's perfectly

AI knows everything about the world

Add mistakes on purpose

Add randomness in any function

Dungeon Master AI controls entire

game world Weather, characters,

animals.. Even flow of the

game

Conclusion No single AI solution Define entities

independent of human/AI

Find the right strategy (or mix) for your game

Designing Intelligence

Yoeri Staal@YoeriStaal [email protected]