Skip to content

yonimn2000/command-line-battleship-v2

Repository files navigation

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

About

An improved version of my command line Battleship game

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages