Skip to content

baonguyen-17/battleShips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

battleShips

A game of battleships set on a chess board, written in C!

Rules:

  • Enter the coordinates as instructed on the board, the entered coordinate will show:
    • 'M' if no ship is hit
    • 'H' if a ship is hit
  • If all slots of a ship are hit, the slots will change to the ship's first initial.
  • Eliminate all the ships
  • Have Fun!

Requirements:

  • C compiler
    • Check if C/C++ compiler is installed by running gcc -v or clang -v in cmd on Windows computer, or terminal on Mac
  • Microsoft Visual Studio (Community Edition 2019 or later) on Windows, or VS Code on Mac (click here for instructions to install & configure C/C++ on VS Code)

Installation Guide:

For Windows:

  • Clone the repository on Visual Studio or download the ZIP file to computer
  • Run main.exe from folder battleShips to play!

For MacOS:

  • Open main.c in the battleShips folder using VS Code
  • Click Run Code to start debugging the code

About

A game of battleships set on a chess board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages