SlideShare a Scribd company logo
1 of 22
Introduction to Artificial Intelligence
Agenda
 What is Artificial Intelligence (AI) ?
 Artificial Intelligence Fields
 AI for Games
- Real-Time Strategy Example
- Abstract AI Model
- Agent’s Main Components
- Game Environment
 How to Build an AI Game?!
What is Artificial Intelligence?
Artificial Intelligence Fields
 Machine Learning
 Swarm Intelligence
 Genetic Programming
 Natural Language Processing
 Game Theory
 Computer Vision
 Robotics
AI for Games
Real-Time Strategy
Abstract AI Model
Agent’s Main Components
Sensors
 Sensors are the Eye of the agent.
 The agent perform its actions according to the current
observed states
 Agent’s sensors works permanently (In the game loop)
Actuators
 In RTS games, all games units should reach their target. So,
Path-Finding techniques are needed
Examples: BFS, Dijkstra, A*, LBA*
 Decision-Making is the most important element when you build an
AI agent. It controls the behavior of the agent during the game
phases
Examples: Finite State Machine (FSM), Fuzzy State Machine (FuSM),
Case-Based Reasoning (CBR)
Actuators (Cont.)
 Steering Behaviors techniques control the movements of the agent
to be more realistic
Examples: Evade, Fleeing, Pursuit
 Planning is commonly used in High-strategic games
Examples: Hierarchical Task Network (HTN)
 There other actuators could be added to your agent according to
your game scenario
Actions & Percepts
 After the agent uses its actuators, actions is done that may reflect
on the game’s environment
 Each of these actions change the state and the environment of the
game
 Percept is needed to estimate the current state that could reflect
on the behavior of the agent
Environment
Environment
 Environment is the world that the agent acts into it
 It is considered to be the main source of information that the agent
should obtain to use its actuators
 Information needed to help the agent in simple RTS game could be
- Resources places (Market, Factories, ..etc.)
- Unmovable units (Mountains, Water, ..etc.)
- Enemy’s positions
- Allies’ positions
Environment (Cont.)
 To implement the AI game environment, you should set the
landmarks, the size of the world and the world’s dimensions
 There are many techniques used to build the environment structure,
but all of them are under the name of Location-Based Information
Systems (LBI)
Examples: Influence Maps, Potential Fields
 Note that, environment could communicate directly with the agent,
like sending notifications or alerts
How to build an AI Game?!
How to Build an AI Game?!
1. Determine the game scenario and type
• According to the game scenario, you determine the type of the game {RTS,
Board, FPS, ..etc.}
• The Type of the game determines the world landmarks and its dimensions,
for example: if the game looks like a First-Person Shooter game, you should
prepare a 3-D world
2. Choose the programming language and supported tools
• A Graphics library is needed to make any game
• There are multiple of libraries that supports 2-D and 3-D graphics, such as
OpenGL, Unity and XNA (No longer supported )
How to Build an AI Game?! (Cont.)
3. Game features and OOP design
• Game development is considered to be a perfect example for how the
programmer uses the project’s features elements and objects efficiently
• No OOP design -> No game!
• Consider using many design patterns to build the game’s OOP design, for
example you will totally need patterns like Strategy, Singleton and
Composite patterns
4. Determine the number of AI agents
• Swarm Techniques could be used to handle the huge number of AI agents
the game
How to Build an AI Game?! (Cont.)
5. Agent and Environment Separation
• Separate the agent’s and environment’s structures from each other
• Implement the interface that will be used to handle the communication
between the agent and the other agents and the environment
 Contact Me

More Related Content

What's hot

Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligenceVikram Kumar
 
Tech Talk on Artificial Intelligence by Navneet@Snapshopr
Tech Talk on Artificial Intelligence by Navneet@SnapshoprTech Talk on Artificial Intelligence by Navneet@Snapshopr
Tech Talk on Artificial Intelligence by Navneet@SnapshoprNavneet Sharma
 
Presentation on artificial intelligence
Presentation on artificial intelligencePresentation on artificial intelligence
Presentation on artificial intelligenceKawsar Ahmed
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceNiket Singh
 
Artificial Inteligence
Artificial InteligenceArtificial Inteligence
Artificial InteligenceManjunath G
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligenceMihir Shah
 
Artificial Intelligence(AI)
Artificial Intelligence(AI)Artificial Intelligence(AI)
Artificial Intelligence(AI)Hari krishnan
 
Artificial intelligence (AI)
Artificial intelligence (AI) Artificial intelligence (AI)
Artificial intelligence (AI) Theareak CHEA
 
Artificial intelligence and Fuzzy Logic
Artificial intelligence and Fuzzy Logic Artificial intelligence and Fuzzy Logic
Artificial intelligence and Fuzzy Logic adeel990
 
The era of artificial intelligence
The era of artificial intelligenceThe era of artificial intelligence
The era of artificial intelligencePrajjwal Kushwaha
 
Artificial intelligence - AI Complete Concept
Artificial intelligence - AI Complete ConceptArtificial intelligence - AI Complete Concept
Artificial intelligence - AI Complete ConceptDr. Abdul Ahad Abro
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Pardeep Vats
 

What's hot (20)

Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Tech Talk on Artificial Intelligence by Navneet@Snapshopr
Tech Talk on Artificial Intelligence by Navneet@SnapshoprTech Talk on Artificial Intelligence by Navneet@Snapshopr
Tech Talk on Artificial Intelligence by Navneet@Snapshopr
 
AI programming languages
AI programming languagesAI programming languages
AI programming languages
 
Artifical intelligence (a.i)
Artifical intelligence (a.i)Artifical intelligence (a.i)
Artifical intelligence (a.i)
 
Presentation on artificial intelligence
Presentation on artificial intelligencePresentation on artificial intelligence
Presentation on artificial intelligence
 
Artificial_Intelligence
Artificial_IntelligenceArtificial_Intelligence
Artificial_Intelligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Artificial Inteligence
Artificial InteligenceArtificial Inteligence
Artificial Inteligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
ARTIFICIAL INTELLIGENCE
ARTIFICIAL INTELLIGENCEARTIFICIAL INTELLIGENCE
ARTIFICIAL INTELLIGENCE
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Artificial Intelligence(AI)
Artificial Intelligence(AI)Artificial Intelligence(AI)
Artificial Intelligence(AI)
 
Artificial intelligence (AI)
Artificial intelligence (AI) Artificial intelligence (AI)
Artificial intelligence (AI)
 
Artificial intelligence and Fuzzy Logic
Artificial intelligence and Fuzzy Logic Artificial intelligence and Fuzzy Logic
Artificial intelligence and Fuzzy Logic
 
The era of artificial intelligence
The era of artificial intelligenceThe era of artificial intelligence
The era of artificial intelligence
 
Artificial intelligence - AI Complete Concept
Artificial intelligence - AI Complete ConceptArtificial intelligence - AI Complete Concept
Artificial intelligence - AI Complete Concept
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 

Similar to Introduction to Artificial Intelligence

Data Driven Game development
Data Driven Game developmentData Driven Game development
Data Driven Game developmentKostas Anagnostou
 
Introduction To My Graduation Project
Introduction To My Graduation ProjectIntroduction To My Graduation Project
Introduction To My Graduation ProjectOmar Enayet
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligencesabairshad4
 
PRESENTATION ON Game Engine
PRESENTATION ON Game EnginePRESENTATION ON Game Engine
PRESENTATION ON Game EngineDiksha Bhargava
 
Funky game engines
Funky game enginesFunky game engines
Funky game engineseduriez
 
AI.implant_Games_White_Paper
AI.implant_Games_White_PaperAI.implant_Games_White_Paper
AI.implant_Games_White_PaperKenneth Trueman
 
Artificial Intelligence gaming techniques
Artificial Intelligence gaming techniquesArtificial Intelligence gaming techniques
Artificial Intelligence gaming techniquesSomnathMore3
 
Introduction to Game Engine: Concepts & Components
Introduction to Game Engine: Concepts & ComponentsIntroduction to Game Engine: Concepts & Components
Introduction to Game Engine: Concepts & ComponentsPouya Pournasir
 
Introduction To My Graduation Project
Introduction To My Graduation ProjectIntroduction To My Graduation Project
Introduction To My Graduation ProjectAbdelrahman Al-Ogail
 
Artificial intelligence and video games
Artificial intelligence and video gamesArtificial intelligence and video games
Artificial intelligence and video gamesSimple_Harsh
 
Game playing in artificial intelligent technique
Game playing in artificial intelligent technique Game playing in artificial intelligent technique
Game playing in artificial intelligent technique syeda zoya mehdi
 
98 374 Lesson 03-slides
98 374 Lesson 03-slides98 374 Lesson 03-slides
98 374 Lesson 03-slidesTracie King
 
Introduction to game_design
Introduction to game_designIntroduction to game_design
Introduction to game_designSayed Ahmed
 
Video Game Making and Mind Reading Game Console
Video Game Making and Mind Reading Game ConsoleVideo Game Making and Mind Reading Game Console
Video Game Making and Mind Reading Game ConsoleAnup Yadav
 
Designing a pragmatic back-end service for mobile games
Designing a pragmatic back-end service for mobile gamesDesigning a pragmatic back-end service for mobile games
Designing a pragmatic back-end service for mobile gamesiFunFactory Inc.
 
Artificial Intelligence in Gaming
Artificial Intelligence in GamingArtificial Intelligence in Gaming
Artificial Intelligence in GamingAnmol Sawhney
 
Intro to Massively Multiplayer Online Game (MMOG) Design
Intro to Massively Multiplayer Online Game (MMOG) DesignIntro to Massively Multiplayer Online Game (MMOG) Design
Intro to Massively Multiplayer Online Game (MMOG) DesignChristopher Mohritz
 
Gameplaying in artificial intelligence
Gameplaying in artificial intelligenceGameplaying in artificial intelligence
Gameplaying in artificial intelligenceoceanparkk
 

Similar to Introduction to Artificial Intelligence (20)

Exploratory Analysis of AI Techniques in Computer Games and Challenges faced ...
Exploratory Analysis of AI Techniques in Computer Games and Challenges faced ...Exploratory Analysis of AI Techniques in Computer Games and Challenges faced ...
Exploratory Analysis of AI Techniques in Computer Games and Challenges faced ...
 
Data Driven Game development
Data Driven Game developmentData Driven Game development
Data Driven Game development
 
Introduction To My Graduation Project
Introduction To My Graduation ProjectIntroduction To My Graduation Project
Introduction To My Graduation Project
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
PRESENTATION ON Game Engine
PRESENTATION ON Game EnginePRESENTATION ON Game Engine
PRESENTATION ON Game Engine
 
Funky game engines
Funky game enginesFunky game engines
Funky game engines
 
AI.implant_Games_White_Paper
AI.implant_Games_White_PaperAI.implant_Games_White_Paper
AI.implant_Games_White_Paper
 
Artificial Intelligence gaming techniques
Artificial Intelligence gaming techniquesArtificial Intelligence gaming techniques
Artificial Intelligence gaming techniques
 
Introduction to Game Engine: Concepts & Components
Introduction to Game Engine: Concepts & ComponentsIntroduction to Game Engine: Concepts & Components
Introduction to Game Engine: Concepts & Components
 
Introduction To My Graduation Project
Introduction To My Graduation ProjectIntroduction To My Graduation Project
Introduction To My Graduation Project
 
Artificial intelligence and video games
Artificial intelligence and video gamesArtificial intelligence and video games
Artificial intelligence and video games
 
Game playing in artificial intelligent technique
Game playing in artificial intelligent technique Game playing in artificial intelligent technique
Game playing in artificial intelligent technique
 
98 374 Lesson 03-slides
98 374 Lesson 03-slides98 374 Lesson 03-slides
98 374 Lesson 03-slides
 
Introduction to game_design
Introduction to game_designIntroduction to game_design
Introduction to game_design
 
Video Game Making and Mind Reading Game Console
Video Game Making and Mind Reading Game ConsoleVideo Game Making and Mind Reading Game Console
Video Game Making and Mind Reading Game Console
 
Designing a pragmatic back-end service for mobile games
Designing a pragmatic back-end service for mobile gamesDesigning a pragmatic back-end service for mobile games
Designing a pragmatic back-end service for mobile games
 
Artificial Intelligence in Gaming
Artificial Intelligence in GamingArtificial Intelligence in Gaming
Artificial Intelligence in Gaming
 
Js3516731693
Js3516731693Js3516731693
Js3516731693
 
Intro to Massively Multiplayer Online Game (MMOG) Design
Intro to Massively Multiplayer Online Game (MMOG) DesignIntro to Massively Multiplayer Online Game (MMOG) Design
Intro to Massively Multiplayer Online Game (MMOG) Design
 
Gameplaying in artificial intelligence
Gameplaying in artificial intelligenceGameplaying in artificial intelligence
Gameplaying in artificial intelligence
 

Introduction to Artificial Intelligence

  • 2. Agenda  What is Artificial Intelligence (AI) ?  Artificial Intelligence Fields  AI for Games - Real-Time Strategy Example - Abstract AI Model - Agent’s Main Components - Game Environment  How to Build an AI Game?!
  • 3. What is Artificial Intelligence?
  • 4.
  • 5. Artificial Intelligence Fields  Machine Learning  Swarm Intelligence  Genetic Programming  Natural Language Processing  Game Theory  Computer Vision  Robotics
  • 6.
  • 11. Sensors  Sensors are the Eye of the agent.  The agent perform its actions according to the current observed states  Agent’s sensors works permanently (In the game loop)
  • 12. Actuators  In RTS games, all games units should reach their target. So, Path-Finding techniques are needed Examples: BFS, Dijkstra, A*, LBA*  Decision-Making is the most important element when you build an AI agent. It controls the behavior of the agent during the game phases Examples: Finite State Machine (FSM), Fuzzy State Machine (FuSM), Case-Based Reasoning (CBR)
  • 13. Actuators (Cont.)  Steering Behaviors techniques control the movements of the agent to be more realistic Examples: Evade, Fleeing, Pursuit  Planning is commonly used in High-strategic games Examples: Hierarchical Task Network (HTN)  There other actuators could be added to your agent according to your game scenario
  • 14. Actions & Percepts  After the agent uses its actuators, actions is done that may reflect on the game’s environment  Each of these actions change the state and the environment of the game  Percept is needed to estimate the current state that could reflect on the behavior of the agent
  • 16. Environment  Environment is the world that the agent acts into it  It is considered to be the main source of information that the agent should obtain to use its actuators  Information needed to help the agent in simple RTS game could be - Resources places (Market, Factories, ..etc.) - Unmovable units (Mountains, Water, ..etc.) - Enemy’s positions - Allies’ positions
  • 17. Environment (Cont.)  To implement the AI game environment, you should set the landmarks, the size of the world and the world’s dimensions  There are many techniques used to build the environment structure, but all of them are under the name of Location-Based Information Systems (LBI) Examples: Influence Maps, Potential Fields  Note that, environment could communicate directly with the agent, like sending notifications or alerts
  • 18. How to build an AI Game?!
  • 19. How to Build an AI Game?! 1. Determine the game scenario and type • According to the game scenario, you determine the type of the game {RTS, Board, FPS, ..etc.} • The Type of the game determines the world landmarks and its dimensions, for example: if the game looks like a First-Person Shooter game, you should prepare a 3-D world 2. Choose the programming language and supported tools • A Graphics library is needed to make any game • There are multiple of libraries that supports 2-D and 3-D graphics, such as OpenGL, Unity and XNA (No longer supported )
  • 20. How to Build an AI Game?! (Cont.) 3. Game features and OOP design • Game development is considered to be a perfect example for how the programmer uses the project’s features elements and objects efficiently • No OOP design -> No game! • Consider using many design patterns to build the game’s OOP design, for example you will totally need patterns like Strategy, Singleton and Composite patterns 4. Determine the number of AI agents • Swarm Techniques could be used to handle the huge number of AI agents the game
  • 21. How to Build an AI Game?! (Cont.) 5. Agent and Environment Separation • Separate the agent’s and environment’s structures from each other • Implement the interface that will be used to handle the communication between the agent and the other agents and the environment