a1d4r / curses-battleship

Battleship game in Python using curses library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battleship game

Requirements

  • Python 3
  • curses package (in standard library for Linux and Mac). For Windows you might want to install windows-curses: pip install windows-curses

Run

python -m battleship height width

For example, to run the game with 10x10 grids:

python -m battleship 10 10

Note: the game uses python

Controls

  • Esc - open game menu
  • Arrow Up/Down - go up/down
  • Arrow Left/Right - go left/right
  • Enter - Confirm your move, select menu item

Screenshots

About

Battleship game in Python using curses library


Languages

Language:Python 100.0%