peterpunk / bs-1

Battleship-1 game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battleship-1

Battleship-1 is a one side Battleship classic game where you can play against the computer and sunk the ships. After you play you can see how good is your rank.

Requirements

Node 14 or higher.

Installation

npm install
npm run build

Playing the game

npm run play

Cheating mode

You can run the game in cheat mode to see the ships before shooting. To do that you can set the environment variable:

CHEAT_MODE=true

About

Battleship-1 game


Languages

Language:TypeScript 99.2%Language:JavaScript 0.8%