C# 클래스 MBC.Controllers.SimpleBot_2_0_0

상속: MBC.Shared.Util.Controller2
파일 보기 프로젝트 열기: aiclub/Mohawk_Battleship

보호된 메소드들

메소드 설명
Initialize ( ) : void

Hooks required events.

비공개 메소드들

메소드 설명
RandomCoordinates ( ) : Coordinates

This method generates a random set of coordinates within the match field boundaries.

findRandomShot ( ) : Coordinates

Iterate over shot map until an available location is found

initializeShotMap ( ) : void

Reset our shotMap to represent a fresh game map

matchBeginEvent ( Event ev ) : void
newMatch ( ) : void

A new match has begun

newRound ( ) : void

A new round has begun, place our ships and prepare to fire!

placeShips ( ) : void

Place ships in specific locations

playerTurnBeginEvent ( Event ev ) : void
roundBeginEvent ( Event ev ) : void
shoot ( Coordinates shot ) : void

Takes coordinates and shoots at them

turnStart ( ) : void

It is our turn, fire!

메소드 상세

Initialize() 보호된 메소드

Hooks required events.
protected Initialize ( ) : void
리턴 void