Artificial Intelligence in Video Games By: Renaldo Doe Kevin Lam.

Slides:



Advertisements
Similar presentations
Heuristic Search techniques
Advertisements

7.1. O SCARS & A RTIFICIAL I NTELLIGENCE Interim awards and introduction to game AI.
AI Pathfinding Representing the Search Space
Pathfinding AI John See 29 Nov, 13 Dec 2010.
Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
Evolution of Artificial Intelligence In Video Games
A Survey of Real-Time Strategy Game AI Research and Competition in StarCraft Santiago Ontanon, Gabriel Synnaeve, Alberto Uriarte, Florian Richoux, David.
Pathfinding Basic Methods.
CSE 380 – Computer Game Programming Pathfinding AI
CSC 423 ARTIFICIAL INTELLIGENCE
Application of Artificial intelligence to Chess Playing Capstone Design Project 2004 Jason Cook Bitboards  Bitboards are 64 bit unsigned integers, with.
NPC Interaction in Video Games Robert Higginbotham.
Artificial Intelligence in Game Design Intelligent Decision Making and Decision Trees.
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
RED DEAD REVOLVER Artificial Intelligence Critique By Mitchell C. Dodes CIS 588.
Game Playing CSC361 AI CSC361: Game Playing.
Video Game Artificial Intelligence April 9, 2007 Alex Rito.
And Just Games etc.. EVOLUTION OF COMPUTER GAMES PongOdyssey Beginning of the use of microprocessors ATARI VCS system bit.
Uninformed Search Reading: Chapter 3 by today, Chapter by Wednesday, 9/12 Homework #2 will be given out on Wednesday DID YOU TURN IN YOUR SURVEY?
Trading optimality for speed…
CHAPTER 15 Artificial Intelligence © 2008 Cengage Learning EMEA.
Problem-solving agents
Chapter 5.4 Artificial Intelligence: Pathfinding.
Chapter 5.4 Artificial Intelligence: Pathfinding.
Artificial Intelligence in Game Design Problems and Goals.
1 Game AI Path Finding. A Common Situation of Game AI A Common Situation of Game AI Path Planning Path Planning –From a start position to a destination.
1 CO Games Development 1 Week 6 Introduction To Pathfinding + Crash and Turn + Breadth-first Search Gareth Bellaby.
1 The Use of Artificial Intelligence in the Computer Game Industry.
1 CO Games Development 2 Week 19 Probability Trees + Decision Trees (Learning Trees) Gareth Bellaby.
1 CO Games Development 1 Week 11 Search Methods Gareth Bellaby.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Artificial Intelligence in Game Design
Holistic Mobile Game Development with Unity 2015 Taylor & Francis. All rights Reserved.
AI and Computer Games (informational session) Lecture by: Dustin Dannenhauer Professor Héctor Muñoz-Avila Computer Science and Eng.
HPC Checkers By Andy Block Ryan Egan. Table of Contents Overview of Checkers ▫Overview of Checkers ▫Rules of the Game AI Theory The Program ▫Board ▫Sample.
Artificial Intelligence in Game Design N-Grams and Decision Tree Learning.
Chap. 1 GENERAL WISDOM AI Game Programming Wisdom.
Artificial Intelligence for Games Online and local search
Artificial Intelligence in Game Design Complex Steering Behaviors and Combining Behaviors.
Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2013 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe.
Computational theory techniques in interactive video games.
Intelligent Database Systems Lab 國立雲林科技大學 National Yunlin University of Science and Technology 1 Evolving Reactive NPCs for the Real-Time Simulation Game.
Artificial intelligence IN NPCs. Early Role Playing games Npcs in early role playing games were very limited in terms of being “Intelligent”. For instance,
F.E.A.R. Game AI Evaluation by Robert Rak. What is F.E.A.R. ? FEAR is a First Person Shooter game Player takes on the role of an elite strike force team.
Artificial Intelligence in Games
Artificial Intelligence in Game Design Influence Maps and Decision Making.
Search in State Spaces Problem solving as search Search consists of –state space –operators –start state –goal states A Search Tree is an efficient way.
CSCE 552 Spring 2010 AI (III) By Jijun Tang. A* Pathfinding Directed search algorithm used for finding an optimal path through the game world Used knowledge.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
CSCE 552 Fall 2012 AI By Jijun Tang. Homework 3 List of AI techniques in games you have played; Select one game and discuss how AI enhances its game play.
AI Overview Logical and Artificial Intelligence in Games Lecture 1.
The Game Development Process: Artificial Intelligence.
Chapter 14 Part 1: Core Game Mechanics By Nolan Driessen.
Artificial Intelligence AIMA §5: Adversarial Search
Chapter 5.4 Artificial Intelligence: Pathfinding
CO Games Development 2 Week 22 Trees
Movement in a full and dynamic environment using a limited influence map Paulo Lafeta Ferreira Artificial Intelligence for Games – CS 580 Professor: Steve.
Maze Implementation, Analysis and Design to find Shortest Paths
CIS 488/588 Bruce R. Maxim UM-Dearborn
Interaction with artificial intelligence in games
Chapter 14 Part 1: Core Game Mechanics By Nolan Driessen
CSCE 552 Spring 2009 AI (III) By Jijun Tang.
CS 416 Artificial Intelligence
Search.
Search.
Decision Trees Jeff Storey.
Artificial Intelligence and Searching
Artificial Intelligence and Searching
Presentation transcript:

Artificial Intelligence in Video Games By: Renaldo Doe Kevin Lam

What is AI in Video Games? Definition: techniques used in computers and video games to produce the illusion of intelligence in the behavior of non-player characters (NPCs).

First Examples Checkers – Christopher Strachey Chess – Dietrick Prinz

Types of AI Algorithms (Older Games) Tracking AI Path-finding Pattern Finding

Pong Paddle movement is determined by simple equations (where the ball will go) Difficulty determines the speed of the computer’s paddle. Uses tracking AI.

Board Games - Backgammon Uses Path Finding to find the best next move. The computer makes its move based on the current state of the board. The search algorithm used is A*.

Space Invaders Utilized “pattern AI” - follows a preset path or pattern The directions or path followed is usually random.

Simulation - Chess Many different moves at any given turn. Utilizes a search tree of possible moves. Many different moves available at any time. – Large search trees

Limit the Search Tree More manageable state Depth limited A* – Programmer provides heuristics to the computer to determine which path is best – Heuristic could be giving a value to the current state of the board – The computer keeps its pieces and removes some of your pieces = desirable move.

“God” Game NPC creatures can “learn” Player can award or punish after the completion of a task – Creature’s belief in how good of an idea that action was will be altered – Player repeatedly tells creature to attack a specific type of enemy

Lionhead’s Black and White Creature dynamically builds a decision tree for “Anger”: What creature attackedFeedback from player Friendly town, weak defense, Celtic tribe Enemy town, weak defense, tribe Celtic+0.4 Friendly town, strong defense, tribe Norse Enemy town, strong defense, tribe Norse-0.2 Friendly town, medium defense, tribe Greek Enemy town, medium defense, tribe Greek+0.2 Enemy town, strong defense, tribe Greek-0.4 Enemy town, medium defense, tribe Aztec0.0 Friendly town, weak defense, tribe Aztec

“Anger” decision tree

Path Planning for NPCs Grid based approach Complex game environments require navigation algorithms to consider complex level geometry for path finding

Example – Static Scene 3D level is converted into a 2D grid Path-finding is accomplished between two cells of the grid “flood-fill” or “bushfire” algorithms used in filling closed regions with irregular and non- polygonal boundaries Cells have at most 8 neighbors

2D Grid First, a seed cell is selected – Neighboring cells are enumerated IF they are not marked as obstacles Enumerated cells expand like a wavefront in a breadth-first manner

3D Grid Each cell in a 3D grid has at most 26 neighbors Extension of basic 2D flood-fill algorithm inefficient Human agent only walks on the surface

3D Grid cont. If (x, y, z) is a surface cell, then (x, y+1, z) is empty.

3D Grid cont. Effective cell neighbors are reduced from 26 to 8 – Performance of path-finding in 3D levels runs close to 2D levels

First Person Shooters Uses waypoints placed on maps to determine what the NPC’s will do. – Calculates: tactical advantage, cover from fire, and safety of a NPC. Uses a look up tables to see if player is in “line of sight” – Weakness: Needs to recalculate when players move.

Moving Target Search Algorithms Computer generated bots Must satisfy stringent requirements – Computation – Execution efficiency Search algorithms can take up as much as 70% of CPU time Graphics consume a significant portion of computational resources, leaving a limited amount for game AI. Basic moving target search, weighted moving target search, commitment and deliberation moving target search

Abstract View

Basic Moving Target Search (BMTS) Generalisation of the A* algorithm. A matrix of heuristic values is maintained during the search process to improve an agent’s accuracy. Suffers from heuristic depression Agent repeatedly traverses the same subset of neighboring states without visiting the rest Agent may continue to look for a shorter path even though a fairly good path to the target has been found – Additional computational overheads and reduce bot performance

Weighted Moving Target Search Reduces explore time in MTS and accelerates convergence by producing a suboptimal solution Heuristic values are brought as close as possible to, but not reaching, the actual values

Commitment and Deliberation MTS Agent may ignore some of the target’s moves The commitment to the current target state increases if the agent moves in a direction where the heuristic value is reducing During deliberation, real-time search is performed when heuristic difference decreases

Computer Abilities vs. Human Abilities Humans can: – Cheat (passcodes and hacks) – Outsmart Computer (Based on Computer Limitations) Computers are faster than humans by: – Aiming (first person shooter) – Calculation – Reconnaissance

Future Challenges – Enemies begin in “guard state”. They won’t do anything until the player would walk into their area. (Repetitive) – Characters behave and move in a more lifelike manner.

Works Cited Cavazza, Marc, Srikanth Bandi, and Ian Palmer. "“Situated AI” in Video Games: Integrating NLP, Path Planning and 3D Animation." Web. 23 Nov Loh, Peter K., and Edmond C. Prakash. "Performance Simulations Of Moving Target Search Algorithms." International Journal of Computer Game Technology (2008): Print. Mott, Ken. "Evolution of Artificial Intelligence In Video Games: A Survey." Web. 25 Nov Wexler, James. "Artificial Intelligence in Games: A Look at the Smarts behind Lionhead Studio’s “Black and White” and Where It Can and Will Go in the Future." Web. 25 Nov

Questions?