C# Класс EricVoglBattleship.Score1D

Keeps track of the number of ship position possibilities in one dimension
Показать файл Открыть проект

Открытые методы

Метод Описание
Apply ( List ships, int index, int length ) : void

Applies possibilities in 1D

Clear ( ) : void

Sets the score to zero

Initialize ( List ships, int index, int length ) : void

Initializes possibilities in 1D

Recalculate ( ) : void

Forces a recalculation of the total score

Score1D ( ) : System.Collections.Generic

Creates a new Score1D object

Sink ( int size ) : void

Update possible positions knowning ship sank

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

Apply() публичный Метод

Applies possibilities in 1D
public Apply ( List ships, int index, int length ) : void
ships List Ships alive
index int index in length
length int length
Результат void

Clear() публичный Метод

Sets the score to zero
public Clear ( ) : void
Результат void

Initialize() публичный Метод

Initializes possibilities in 1D
public Initialize ( List ships, int index, int length ) : void
ships List Ships alive
index int index in length
length int length
Результат void

Recalculate() публичный Метод

Forces a recalculation of the total score
public Recalculate ( ) : void
Результат void

Score1D() публичный Метод

Creates a new Score1D object
public Score1D ( ) : System.Collections.Generic
Результат System.Collections.Generic

Sink() публичный Метод

Update possible positions knowning ship sank
public Sink ( int size ) : void
size int Size of ship that sank
Результат void