Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 917 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 917 Bytes

Command Line Battleship Game

A command line Battleship game.

This is a complete makeover of my first version of the game which can be found here.

Game Options XML

<BoardOptions>
  <AllowAdjacentShips>false</AllowAdjacentShips>
  <AllowExtraMoveAfterHit>true</AllowExtraMoveAfterHit>
  <BoardSize width="10" height="10"/>
  <Ships>
    <Ship count="1" height="4" width="1" name="Battleship"/>
    <Ship count="2" height="3" width="1" name="Cruiser"/>
    <Ship count="3" height="2" width="1" name="Destroyer"/>
    <Ship count="4" height="1" width="1" name="Submarine"/>
  </Ships>
</BoardOptions>

Note that this file opens from the main menu of the game.

Gameplay

Main Menu

Main Menu

Placing Ships on Board

Ship Placement

The Match

Gameplay