1 / 20

Case-Based Planner Platform for RTS Games

Case-Based Planner Platform for RTS Games. Abdelrahman Al- Ogail Ahmed Atta. An Introduction. Agenda. Case Representation. Santiago Platform. David W. Aha. Case Representation. Case. Plan. Goal. State. Actions. Subgoal. Case = ( Goal , State , Plan, Performance).

oliver
Download Presentation

Case-Based Planner Platform for RTS Games

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Case-Based Planner Platform for RTS Games Abdelrahman Al-Ogail Ahmed Atta An Introduction

  2. Agenda • Case Representation. • Santiago Platform. • David W. Aha.

  3. Case Representation Case Plan Goal State Actions Subgoal Case = ( Goal , State , Plan, Performance)

  4. Case Representation   Example of a case Goal: ResourceGoal(Gold, MaxInfluence, 10) State: Number of gold mines Distance between gold mines and nearest gold mine storer Number of free or useless peons Plan: Train(3, peon) Assign(3, peons, GoldMiner) Build(Farm) Build(GoldMineCollector, 200) Performance: Number of gold collected

  5. CBP - CaT Abstract The Case-Based Tactician(CaT) system, created by Aha, Molineaux, and Ponsen (2005), uses case-based reasoning to learn to win the real-time strategy game Wargus. Previous work has shown CaT’sability to defeat a randomly selected opponent from a set against which it has trained. We now focus on the task of defeating a selected opponent while training on others. We describe CaT’salgorithm and report its cross-validation performance against a set of Wargus opponents.

  6. CBP - CaT - Spronk and Ponsen developed a genetic algorithm and a technique called dynamic scripting to learn plans spanning the entire game which win against fixed opponent. • CaTis the first case-based system designed to defeat an opponent that uses tactics and strategies that it has not trained against. • RTS Games concerns on: military combat, exploration, economic development, research advancement, limited diplomacy.

  7. CBP - CaT • Sources: • Building Static Lattic. • Set of tactics in every state. • Game State • Winning (i.e., by destroying all the enemy units and buildings) requires managing three key resources: buildings, the workforce, and an army. • The decision space is the set of possible actions that can be executed at a particular moment.

  8. CBP - CaT • We estimate this as O(2W(A*P) +2T(D+S) + B(R+C)), • Where: • W is the current number of workers. • A is the number of assignments workers can perform (e.g., create a building, gather gold) • P is the average number of workplaces. • T is the number of troops (fighters plus workers). • D is the average number of directions that a unit can move. • S is the choice of troop’s stance (i.e., stand, patrol, attack). • B is the number of buildings. • R is the average choice of research objectives at a building. • C is the average choice of units to create at a building.

  9. CBP - CaT

  10. CBP - CaT

  11. CBP - CaT • Idea of breaking game into periods in order to current available buildings. • Building state is time between the constructions of such building to the time the next is built. • Building state defines the set of actions available to the player at any one time. • In contrast, CaTperforms no adaptation during reuse, but does perform case acquisition. Also, CaTfocuses on winning a game rather than on performing a subtask.

  12. CBP - CaT • CaTretrieves cases when a new state in the lattice is entered. • The similarity between a stored case C and the current game state S is defined as: • SimC, S = (CPerformance/dist(CDescription, S)) - dist(CDescription, S) • where dist() is the (unweighted, unnormalized) Euclidean distance between two cases for the eight features. • However, to gain experience with all tactics in a state, case retrieval is not performed until each available tactic at that state is selected e times, where e is CaT’sexploration parameter. • During exploration, CaTrandomly retrieves one of the least frequently used tactics for reuse. Exploration also takes place whenever the highest Performance among the k-nearest neighbors is below 0.5.

  13. CBP - CaT • Then after applying the case we evaluate by:

  14. CBP - CaT • Evaluation yields the Performance of a case’s Tactic, which is measured at both a local and global level. That is, CaTrecords the WARGUS game score for both the player and opponent at the start of each BuildingState and at the game’s end, which occurs when one player eliminates all of the other’s units and buildings. • In retaining C’ if we found C with same <Description, Tactic> then we update it. Otherwise create new case

  15. CBP - Darmok • Darmok starts the execution with the initial goal of “WinWargus”. • The system Retriever will try to return a plan to satisfy this goal by going on the following 4 steps:

  16. CBP - Darmok 1- Define the current Situation Game State best-first greedy hill-climbing algorithm shallow features a Example of extracted shallow features: lumber (number of trees in the map), food (amount of food), gold (amount of gold of the player), peasants (number of peasants) and units (number of units the player has) Game state Shallow features values Situation b In this example , According to the values of these features we predict that the current situation is BEGINNING

  17. CBP - Darmok 2- Return a set of cases related to the current situation Set of cases Case base Situation Returns all cases which have Situation = BEGINNING , and Goal = WINWARGUS

  18. CBP - Darmok 3- determining discriminate features Set of cases Deep features a feature selection algorithm • Example of extracted Deep features: • ispath (a boolean feature that is true when there is a path from the player base to the enemy base) • wallbarrier- width (the width of the biggest barrier between the player and the enemy) • baseproximitydistance (distance between the player’s base and the enemy base).

  19. CBP - Darmok 4- define the most relevant case Deep features case(s) normal retrieval techniques According to the values of these deep features, the retriever will determine which case is the most relevant to the current game situation

  20. CBP - Darmok • Shallow Features Some features used to define the current game situation. • Deep features Some features used to discriminate between some cases. Shallow Features VS Deep Features

More Related