C# 클래스 MBC.Controllers.RandomBot

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

보호된 메소드들

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