C# Class MBC.Controllers.SimpleBot_2_0_0

Inheritance: MBC.Shared.Util.Controller2
Datei anzeigen Open project: aiclub/Mohawk_Battleship

Protected Methods

Method Description
Initialize ( ) : void

Hooks required events.

Private Methods

Method Description
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!

Method Details

Initialize() protected method

Hooks required events.
protected Initialize ( ) : void
return void