C# 클래스 EricVoglBattleship.AdaptiveBattleshipDefense

Battleship defense that attempts to place ships in the least probable locations based on ship position possibilities and previous incoming shots
상속: IBattleshipDefense
파일 보기 프로젝트 열기: solium/hacklympics 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Cleanup() 공개 메소드

Cleans up a battleship defense
public Cleanup ( GameEndState state ) : void
state GameEndState Win/Lose/Draw
리턴 void

IncomingShot() 공개 메소드

Register an incoming shot
public IncomingShot ( Position p ) : void
p Position Position shot at
리턴 void

Initialize() 공개 메소드

Initializes a battleship defense
public Initialize ( BattleshipPlayer player ) : void
player BattleshipUtility.BattleshipPlayer owning player
리턴 void

PlaceShips() 공개 메소드

Place ships on board
public PlaceShips ( ) : List
리턴 List