C# Class EricVoglBattleship.AdaptiveBattleshipDefense

Battleship defense that attempts to place ships in the least probable locations based on ship position possibilities and previous incoming shots
Inheritance: IBattleshipDefense
Afficher le fichier Open project: solium/hacklympics Class Usage Examples

Méthodes publiques

Méthode Description
Cleanup ( GameEndState state ) : void

Cleans up a battleship defense

IncomingShot ( Position p ) : void

Register an incoming shot

Initialize ( BattleshipPlayer player ) : void

Initializes a battleship defense

PlaceShips ( ) : List

Place ships on board

Method Details

Cleanup() public méthode

Cleans up a battleship defense
public Cleanup ( GameEndState state ) : void
state GameEndState Win/Lose/Draw
Résultat void

IncomingShot() public méthode

Register an incoming shot
public IncomingShot ( Position p ) : void
p Position Position shot at
Résultat void

Initialize() public méthode

Initializes a battleship defense
public Initialize ( BattleshipPlayer player ) : void
player BattleshipUtility.BattleshipPlayer owning player
Résultat void

PlaceShips() public méthode

Place ships on board
public PlaceShips ( ) : List
Résultat List