Skip to content

pl608/Battle-Ship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Battle-Ship

  • A fun console game in Python for bored people. Will not work in idle.(see Note)
  • Singleplayer for the time being, until socket functionality is added.

This SHOULD work in Linux, the thing that maybe won't work is where it clears the screen then re-prints the battleship board along with some other stuff (to look animated)

Note:

This clearly wont work in python idle because it uses os module (os.system('clear')) to clear

Adding Ships

If you want to add a ship to be used in the game you need to copy the format of the other ones, so to add a ship simply do this:

ships['<ship-name>'] = [<spaces>, False]]
spaces: int
ship-name: string

Make sure that the second item is False.

also if you want the latest and possibly greatest look in the testing branch

About

Python-console battle ship

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages