Skip to content

mav-zate/battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Battleship

This is a desktop version of the popular board game Battleship written in Python 2.7.

Setup

Download a 32-bit version of pygame from pygame. For Mac OS X users, you can download pygame directly from here.

Make sure that you have Python 2.7 installed. You may download the appropriate version here

To run the game, go the main directory and run python2.7-32 main.py from the command line.

Instructions

The game plays exactly as the table-top version except that players' fleet configurations are randomly determined at start. To receive indication of hit or miss, turn sound on. A "kaboom" means a hit, and a "sploosh" means a miss. Press enter to reveal each player's side of the board. Click on the square that you want to fire at.

battleship_instructions

The left board (in green) is the current player's board. The board on the right (in red) is the current player's view of the enemy board.

Gameplay

gameplay_gif

Credits

blockSky.png fire.png

These images were designed by Koh Terai for the game we developed for an Intro to CS class in 2013.

The salvatoreSinkingShips.mp3 file was made by converting the following video to mp3. Salvatore's Sinking Ships is a mini-game within the video game, The Legend of Zelda: the Wind Waker, released by Nintendo on the Nintendo GameCube.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages