Skip to content

mariajosematar/Battleship-Python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

LEGEND

  • X for placing ship and hit battleship
  • ' ' for available splace
  • '-' for missed shot

Game types

  1. Single_player.py
  • Computer randomly places 5 ships, player has 10 guesses
  1. Advanced_with_computer.py
  • player and computer place 5 single ships, both guess
  • take turns guessing, whichever one sinks all five first wins
  1. 5_ship_types_with_computer.py
  • 5 different ship types - 2, 3, 3, 4, 5
  1. Single_player_OO.py
  • Rewrite Single Player to use Object oriented programming
  1. Future algorithm considerations
  • tell user when ship is sunk
  • Computer Placement
    • Place ships in center and not edges,
    • cluster some ships, possibly in bottom right corner
  • Computer Guess
    • Picker center, then checkerboard guess strategy
    • If hit, computer plays adjacent to ship

Releases

No releases published

Packages

 
 
 

Languages