C# Class MBC.Controllers.RandomBot

Inheritance: MBC.Shared.Controller
Exibir arquivo Open project: aiclub/Mohawk_Battleship

Protected Methods

Method Description
Initialize ( ) : void

Creates the random generator and hooks required events.

Private Methods

Method Description
CreateShots ( Event ev ) : void
PlaceShips ( Event ev ) : void
QueueShotsPlayer ( Player opponent ) : void

Populates the shotRemain list with all possible shots against a Player opponent

RandomCoordinates ( ) : Coordinates

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

RandomShipOrientation ( ) : ShipOrientation

This method randomly returns one of two ShipOrientation enums.

Shoot ( Event ev ) : void

Method Details

Initialize() protected method

Creates the random generator and hooks required events.
protected Initialize ( ) : void
return void