Skip to content

This repo is created to practice some low-level-design using the battleship game as an example.

Notifications You must be signed in to change notification settings

Baso1st/battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello, and welcome to Battleship

To Start the game run gameloop.py

Please read the following before you run the game:

The game right now is set to auto mode. So once you start, it will make random gusses and play automatically against the computer, but you can change that in the code.

Game features. (checked means done ;)

  • Play against the computer.
  • Support more than two players.
  • Different winning strategies (Annihilation, Score, TimeLimit).
  • Change the board to be a matrix instead of a hash_table.
  • Add automated Testing
  • Allow players to choose a Placement strategy(Manual, Auto).
  • Implement the Manual Placement Strategy
  • Dockerize the game
  • Change the way the winning strategy works to use observable pattern, to get notified when a player is hit or destroyed.
  • Need to add a game_config class to pass to the game class. It should contain, row_count, col_count, player_count, etc...
  • Different types of boards (square, rectangle, circle, etc...).
  • Get rid of all the ToDo comments.

🚀 🚀 🚀 FYI: I am working on an API and a UI for the project as well. You can find them in the following repositories:

About

This repo is created to practice some low-level-design using the battleship game as an example.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages