Battleship Game for distributed system
7 Battleship game
Implement battleship game. Before play begins, each player secretly arranges their ships on their primary grid. After the ships have been positioned, the game proceeds in a series of rounds. In each round, each player takes a turn to announce a target square in the opponent's grid which is to be shot at.
0:miss 1:hit 2:defeat
later 3: sink
9:empty cell
//true - horizontal //false - vertical