seabattle

Implementation of the "Sea Battle" game on the "Tida" framework using the OOP structure.

At the moment, only one game can be played alone with a bot. The bot can make moves, and if it finds a ship, it finds adjacent decks until it completely destroys it.

Win or lose is determined by the background. If green - the player won, red - the computer.

To restart the game, press the "R" button and the game will clear the field and randomly generate both cards.

Members

Classes

Bot
class Bot
Undocumented in source.
PlayingField
class PlayingField
Undocumented in source.
SeaBattleMainScene
class SeaBattleMainScene
Undocumented in source.

Enums

CellState
enum CellState
Undocumented in source.

Functions

clearFieldGrid
void clearFieldGrid(CellState[10][10] grid)
Undocumented in source. Be warned that the author may not have intended to support it.
generateFieldGrid
void generateFieldGrid(CellState[10][10] grid)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin GameRun!(GameConfig(640, 480, "Sea Battle"), SeaBattleMainScene)
Undocumented in source.

Variables

CellStateSize
auto CellStateSize;
Undocumented in source.

Meta

Authors

TodNaz

License

MIT