The general Game AI concept

Slides:



Advertisements
Similar presentations
1 UM Stratego Collin Schepers Daan Veltman Enno Ruijters Leon Gerritsen Niek den Teuling Yannick Thimister.
Advertisements

Chapter 09 AI techniques in different game genres (Puzzle/Card/Shooting)
Artificial Intelligence: Knowledge Representation
Mean, Median, Mode & Range
1 1  1 =.
1  1 =.
Solving problems by searching
Artificial Intelligence in Game Design
Wall Building for RTS Games Patrick Schmid. Age of Empires.
Soar and StarCraft By Alex Turner. What is StarCraft: Brood War? A Real-Time Strategy (RTS) computer game released in A sci-fi war simulation Continually.
Heuristic Search techniques
A New World Or People Keep Telling Me This is Ambitious By Jeremiah Lewis.
Data Structures: A Pseudocode Approach with C
Chapter 5 Plan-Space Planning.
AI Pathfinding Representing the Search Space
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
Chapter 9 Interactive Multimedia Authoring with Flash Introduction to Programming 1.
Benchmark Series Microsoft Excel 2013 Level 2
Automatic Verification Book: Chapter 6. What is verification? Traditionally, verification means proof of correctness automatic: model checking deductive:
Data Structures: A Pseudocode Approach with C 1 Chapter 5 Contd... Objectives Explain the design, use, and operation of a linear list Implement a linear.
CSE 380 – Computer Game Programming Pathfinding AI
Fuzzy Logic Steve Foster.
Artificial Intelligence in Game Design Introduction to Learning.
Automated rule Generation Maryam Mustafa Sarah Karim
Learning Behavior using Genetic Algorithms and Fuzzy Logic GROUP #8 Maryam Mustafa Sarah Karim
And Just Games etc.. EVOLUTION OF COMPUTER GAMES PongOdyssey Beginning of the use of microprocessors ATARI VCS system bit.
Tactical AI in Real Time Supervisor: Aleks Jakulin Crew: Damir Arh, Matija Jekovec, Mitja Luštrek Gregor Leban, Martin Žnidaršič, Uroš Čibej Translation:
Programming: Simple Control Structures Alice. Control Statements We have been using Do in order and Do together to control the way instructions are executed.
Heuristic Search Heuristic - a “rule of thumb” used to help guide search often, something learned experientially and recalled when needed Heuristic Function.
The Greedy Wall Building algorithm Rami Khouri. Ideal definition of Wall Either keeps valuable assets in, or enemies out…mostly keep enemies out Impassable,
Chapter 5.4 Artificial Intelligence: Pathfinding.
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 AI Fundamentals. What is Artificial Intelligence (AI)? Not easy to answer… “Ability of a computer or other machine to perform those activities that.
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.
Dijkstras Algorithm Named after its discoverer, Dutch computer scientist Edsger Dijkstra, is an algorithm that solves the single-source shortest path problem.
Networking Networking is done via a single component that is persistent in each machine’s game. This multiplayer manager component handles all Unity RPC.
1 State Space of a Problem Lecture 03 ITS033 – Programming & Algorithms Asst. Prof.
SKILLS AND TECHNIQUES A SKILL Is an action that we use in an activity Cartwheel, passing, shooting are all examples of skills TECHNIQUE Is the way in.
WAES 3308 Numerical Methods for AI
Department of Electrical Engineering, Southern Taiwan University Robotic Interaction Learning Lab 1 The optimization of the application of fuzzy ant colony.
1 CO Games Development 1 Week 11 Search Methods Gareth Bellaby.
Artificial Intelligence in Game Design N-Grams and Decision Tree Learning.
Artificial Intelligence in Game Design Dynamic Path Planning Algorithms.
Random Map Generation and Transport Unit AI for Strategy Games By Russell Kuchar.
CSCI 4310 Lecture 8: Path Planning. Book Buckland Ch. 8.
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.
1 CO Games Development 1 Week 13 - Revision Lecture AI Revision Gareth Bellaby.
A* Path Finding Ref: A-star tutorial.
Chapter 9 Sorting. The efficiency of data handling can often be increased if the data are sorted according to some criteria of order. The first step is.
Catch Me If You Can Group 20 B 鍾政達 B 陳建男 B 何雨帆.
Graphs Upon completion you will be able to:
Artificial Intelligence in Game Design Influence Maps and Decision Making.
E E Module 5 © Wayne D. Grover 2002, (for non-negative edge weights only) Key concepts: “labelling”, “scanning” Label = {distance, predecessor}.
Decision Maths 1 Shortest path algorithm Dijkstra’s Algorithm A V Ali :
Graphs + Shortest Paths David Kauchak cs302 Spring 2013.
Finite State Machines Logical and Artificial Intelligence in Games Lecture 3a.
Solving problems by searching Chapter 3. Types of agents Reflex agent Consider how the world IS Choose action based on current percept Do not consider.
Solving problems by searching
Game Engine Architecture
Application of Artificial Intelligence and Graphics to Support a Three-Dimensional Game Chris Cummings.
Movement in a full and dynamic environment using a limited influence map Paulo Lafeta Ferreira Artificial Intelligence for Games – CS 580 Professor: Steve.
Lesson Objectives Aims Understand the following “standard algorithms”:
Artificial Intelligence Problem solving by searching CSC 361
A* Path Finding Ref: A-star tutorial.
Programming: Simple Control Structures
The Rock Boxers: Tabitha Greenwood Cameron Meade Noah Cahan
CO Games Development 1 Week 8 Depth-first search, Combinatorial Explosion, Heuristics, Hill-Climbing Gareth Bellaby.
Decision Trees Jeff Storey.
Presentation transcript:

Chapter 10 AI Techniques in different game genres (SLG / Action / Fighting)

The general Game AI concept

AI for Fighting

AI for Fighting - Analysis Attack Point – High, Medium, Low Defense Point – High, Medium, Low Professional Attack Distance – Long, Middle, Short Movement ability – Dash, Run, Walk, Jump

AI for Fighting – Attack / Defense Case HP / Status Attack Type Range: Short Attack Type Range: Mid Attack Type Range: Long Rival Distance Output Action 1 High / Stand High Damage Long Idle NIL Mid – Range 1. Dash front 2. Attack in short distance 2 Low / Stand Low Damage Very Short Idle Medium Damage Long Idle Far 1. Stay 2. Attack in long distance 3 Medium / Stand High Damage Short Idle Low Damage Short Idle Medium Damage Very Long Idle Near 1. Dash Back 2. Attack in mid distance 4 Medium / Be Attack 1. Blocking 2. Combo Attack

AI for Action Game Move Closer To Player Dash Attack Combo Attack Tactic Rank AI Skill Tactic Big Boss Smart walk, run, dash attack, normal attack, combo attack, special attack For example, move to player backward when player is fighting with others. Small Boss walk, run, dash attack, normal attack, combo attack No Normal Soldier Normal walk, normal attack, combo attack

Pathfinding

Dijkstra's Algorithm

Dijkstra's Algorithm

A* (A Star) Algorithm Heuristic Estimation Weight of path Cost Comparing

Concept of A* (A Star) Add the starting node (tile) to the open list. Look for the lowest F cost node on the open list. We refer this as the current node. The node move from open list to close list. For each of the 4 nodes, top, right, down and left adjacent to this current node. If nodes note closed or not reachable then skip them. If the node is in the open list already, check the G cost. Select the linked note of lowest G with cost 1. If the node is not in the open list, then add to open list. Repeat step 2 to step 4 until found the target node (tile) and return the path. But if the open list is empty and not reaching the target tile yet that means you can't reach the target node and return false.

A* (A Star) Algorithm

A* (A Star) Algorithm

SLG Analysis Component Goals Resource Soldiers Workers Building Current Team Format Map / Global Status Time Prediction

Making Decision Movement Attack Healing

Fuzzy Logic Degrees of value Fuzzy State Machine If True is 1, False is 0. We should have 0.1 fuzzy values, which near false but not absolutely false. Fuzzy State Machine When design AI State machine, we should apply fuzzy values for state controlling and state presentation

Traditional fuzzy state machine Number of Variable Number of value exist in each variable Total rules generation 2 5 52 = 25 3 53 = 125 4 54 = 625 55 = 3125 6 56 = 15625

Traditional fuzzy state machine (Example) My Team Scale Enemy Team Scale My Team Attacking Status Strong Attack Carefully Average Attack Weak Full Attack Runaway

Combs method William E. Combs designed a method to prevent combinatorial explosion in fuzzy logic rules. The method describes the direct relationship between every variable and the fuzzy value of state. AI system then combines all results to generate the final result.

Combs method (Example) Variable : Value Attacking Status My Team Scale: Strong Full Attack (90%) My Team Scale: Average Attack (60%) My Team Scale: Weak Attack Carefully (30%) Enemy Team Scale : Strong Enemy Team Scale : Average Enemy Team Scale : Weak

Combs method (Example) My Team Scale Enemy Team Scale My Team Attacking Status Strong (90%) Strong (30%) Attack Carefully (27%) Average (60%) Attack (54%) Weak (90%) Full Attack (81%) Runaway (18%) Attack Carefully (36%) Weak (30%) Runaway (9%)

Thank You