Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsteixeira/battleship-cobol
A Cobol implementation of the classical Battleship game
https://github.com/gsteixeira/battleship-cobol
Last synced: about 5 hours ago
JSON representation
A Cobol implementation of the classical Battleship game
- Host: GitHub
- URL: https://github.com/gsteixeira/battleship-cobol
- Owner: gsteixeira
- License: gpl-3.0
- Created: 2021-09-20T11:04:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-04T13:23:12.000Z (almost 3 years ago)
- Last Synced: 2023-12-14T16:57:38.887Z (11 months ago)
- Language: COBOL
- Size: 272 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Battleship Cobol
A Cobol implementation of the classical [Battleship](https://en.wikipedia.org/wiki/Battleship_(game)) game.
![Battleship Cobol - Game board](/images/board.png)
### How to install
Build:
```bash
git clone github.com/gsteixeira/battleship-cobol
cd battleship-cobol
make
make install
```
Or just download from Releases..### How to run
```bash
# If you just installed
battleship
# if you haven't installed
make run
```### How to play
- Type your guess:
- A Letter representing a Column.
- A Number representing a Line.
- Eg: a 3, b 5, c 7,....
- The Computer player will make his move.
- Repeat until someone loose all the ships.
### Installing DependenciesThere is no dependency to play the game. You can download a compiled game from the [Releases](https://github.com/gsteixeira/battleship-cobol/releases) section, and play right away.
I you are want to build it, Battleship-cobol uses only the basic **gnucobol**. You need to install it in your distribuition packaging manager, or:
```bash
make dep
make
```![Battleship Cobol - Main menu](/images/menu.png)
![Battleship Cobol - Victory](/images/victory.png)
Have fun!