A game of battleships set on a chess board, written in C!
- 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!
- C compiler
- Check if C/C++ compiler is installed by running
gcc -v
orclang -v
in cmd on Windows computer, or terminal on Mac
- Check if C/C++ compiler is installed by running
- 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)
- Clone the repository on Visual Studio or download the ZIP file to computer
- Run
main.exe
from folderbattleShips
to play!
- Open
main.c
in thebattleShips
folder using VS Code - Click
Run Code
to start debugging the code