Computer implementation of the old Battleship boardgame
The goal is to make a game with N virtual and human users
and to make a trainable virtual users using machine learning
The project will include the actual game (which is the hard part)
and the _machine learning part
The structre of the planning the game as follows:
-
Recive parametes from the user about the:
- Number of players
- Length of board (the board is a squar)
- Check the paramets
-
Initiate the Game class:
- Initiate the players
- Initiate the board - this will include a recursive
function in order to place all the ships - The placing of the ships is yet not
decided - Player objects vs. Game object
-
Initiate the Game round and define the rules
and how each player attack another
how players can view their board
and the diff between human and virtual players
The structre of the planning the ML as follows:
The outcome of each decision, good or bad, will be saved to file.
with the board data at that time, the position on the board,
and maybe also the actual time and date
Problems:
The board array will have to be normalized in order to fit a model
this will be the hard part.
The position of the hit on the board will also
need to be normalized in condition to the size of the board