Computer games are nearly as old as electronic computers themselves. The first tic-tac-toe game was programmed on an EDSAC vacuum-tube computer. Your job will be to expand the Battleship program started in earlier labs into a fully-playable game.
4.2 The game of Battleship
Wikipedia has a thorough description of the origins of the game of?. For purposes of this assignment, follow the following rules.
全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写1.The game is played between two players (one human and one computer for your program).
2.Each player has an identical set of ships. Each ship has a length, a name (e.g., “submarine”), and a symbol (a letter, e.g., “S”).
3.Each player has a grid, called the “battle board”,? which is mostly hidden from the other player. The grid is used for marking the locations of the pl