|
Britbot
|
This class represents a possibility of a game based on an assignment. More...
Public Member Functions | |
| SimulatedGame () | |
| A c'tor, this should allocate memory This should be called ONCE PER TURN. | |
| void | ResetSimulation () |
| This resets the simulation to the current game status, it should be used for every assignment. | |
| void | AddEvent (SimulatedEvent newEvent) |
| This enqueues a new event to the pending events. | |
| double | RunSimulation (CancellationToken cancellationToken) |
| Simulates the game and calculates the score. | |
| double | CalculatePpt () |
| calculates how many point per turn each side will get | |
Public Attributes | |
| Dictionary< int, SimulatedGroup > | EnemyGroups |
| List of all enemy groups. | |
| Dictionary< int, SimulatedIsland > | Islands |
| List of the islands in the game. | |
| Dictionary< int, SimulatedGroup > | MyGroups |
| List of all friendly groups. | |
| double | MyIslandCount |
| double | EnemyIslandCount |
| double | MyDeadPirates |
| double | EnemyDeadPirates |
| double | OriginalMyIslandCount |
| double | OriginalEnemyIslandCount |
| double | OriginalMyDeadPirates |
| double | OriginalEnemyDeadPirates |
| List< SimulatedEvent > | ConstantEvents |
| a queue representing the constant events those that will happen in all possible assignments | |
Properties | |
| double | Score [get, set] |
| the score | |
| int | CurrentTurn [get, set] |
| the current turn of the simulation | |
Private Attributes | |
| HeapPriorityQueue< SimulatedEvent > | CommingEvents |
| A priority queue representing the events to come in this scenario Events are prioratized in a cronological order. | |
This class represents a possibility of a game based on an assignment.
Definition at line 16 of file SimulatedGame.cs.
1.7.6.1