Méthode | Description | |
---|---|---|
PositionPossibilities ( int index, int length, List |
Determines the number of possible ship orientations of a given size in a given 1D space at a given position in that space
|
|
PositionPossibilities ( int index, int length, int size ) : int |
Determines the number of possible ship orientations of a given size in a given 1D space at a given position in that space
|
|
ShipPossibilityMatrix ( int width, int height, List |
Populates a matrix with number of ship position possibilities in each row/column (divided by ship type and orientation)
|
|
ShipPossibilityMatrix ( int width, int height, List |
Populates a matrix with number of ship position possibilities in each row/column
|
public static PositionPossibilities ( int index, int length, List |
||
index | int | position in 1D space |
length | int | size of 1D space |
ships | List |
ships in 1D space |
Résultat | int |
public static PositionPossibilities ( int index, int length, int size ) : int | ||
index | int | position in 1D space |
length | int | size of 1D space |
size | int | |
Résultat | int |
public static ShipPossibilityMatrix ( int width, int height, List |
||
width | int | Width of board |
height | int | Height of board |
ships | List |
Ships in play |
Résultat | ].Score2D[ |
public static ShipPossibilityMatrix ( int width, int height, List |
||
width | int | Width of board |
height | int | Height of board |
ships | List |
Ships in play |
totalPositions | int | Total position possibilities |
Résultat | ].int[ |