C# Класс MBC.Controllers.RandomBot

Наследование: MBC.Shared.Controller
Показать файл Открыть проект

Защищенные методы

Метод Описание
Initialize ( ) : void

Creates the random generator and hooks required events.

Приватные методы

Метод Описание
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

Описание методов

Initialize() защищенный Метод

Creates the random generator and hooks required events.
protected Initialize ( ) : void
Результат void