Method | Description | |
---|---|---|
Cleanup ( GameEndState state ) : void |
Cleans up an offense
|
|
DumpProbabilities ( ) : void |
Display probabilities (DEBUG)
|
|
Fire ( ) : Position |
Fires at a position
|
|
Hit ( ) : void |
Register last fire as a hit
|
|
Initialize ( |
Initializes a battleship offense
|
|
Miss ( ) : void |
Register last fire as a miss
|
|
RegisterEnemyPositions ( List |
Enemy positions sent to us after game ends
|
|
Sink ( string s ) : void |
Notify that a ship has sunk
|
Method | Description | |
---|---|---|
AdjacentPositions ( Position p ) : IEnumerable |
Returns all positions adjacent to a position
|
|
AdjustNotAdjacentScore ( Position pos ) : void |
Adjust scores in the not-adjacent matrix
|
|
AdjustScore ( Position pos ) : void |
Adjust scores based on the last shot
|
|
CheckAdjacent ( int row, int col, List |
Checks adjacent squares for candidates
|
|
DestroyShot ( ) : List |
Find next best shots in destroy mode
|
|
DetermineRemainingPositions ( ) : void |
Adjust the total remaining positions
|
|
HistoricalHitProbability ( int row, int col ) : double |
Determines the historical hit probability
|
|
NeighborScore ( Position pos, bool normalize ) : double |
Determines the Neighbor score at a given position
|
|
Score ( int row, int col, bool includeNeighbor ) : double |
Determines total probability at position p
|
|
SearchShot ( bool even ) : List |
Choose the next best shot in Search mode
|
|
Sink ( |
Adjust position possibilies based on the fact that a ship was sunk
|
public Initialize ( |
||
player | owning player | |
return | void |
public RegisterEnemyPositions ( List |
||
ships | List |
|
return | void |
public Sink ( string s ) : void | ||
s | string | Code representing the ship |
return | void |