Battleship

Description:
This a text-based version of HASBRO’s Battleship game. The user can choose one or two players. The player then sets up their ships on the game board. The players take turns firing at the opposing person’s ship. The computer will automatically take the shot for one player. This will continue until the all the ships are sunk.
Current Build:

  • Developed the board model and game controller to display the model.
  • Create a method that allows a player to place ships on the board checking to make sure that their is no overlap.
  • Designed a method that automatically assigns the computer ships to the board.
  • Implemented the ability to take a shot at the opposing player’s ships.

Preview:

Source:
https://github.com/jmiddendo/Battleship
Future Iterations:

  • Implement server socket communication to allow two players to play from different machines.
  • Update the the computer’s automated turn to take into account prior shots and not completely random.
  • Include a login to track a player’s habits over time.

Tic Tac Toe

Description:
This project is a Tic Tac Toe game that accepts a user input on a game board and continues until all squares are full or a user gets three in a row.
Current Build:

  • Holds a game board model.
  • Provides an interface to accept user input.
  • Analyze board to determine winner.

Preview:

Source:
https://github.com/jmiddendo/PythonSamples
Future Iterations:

  • No future iterations planned

Hangman

Description:
This project is a hangman game.  The game loads a Scrabble word list and chooses a random word from the list.  The user then guesses letters until they solve the word or accumulate too many incorrect guesses.
Current Build:

  • Program loads a Scrabble word list.
  • Selects a random word from the list.
  • Provides an interface that accepts a user letter guess.
  • Tracks the number of incorrect guess.

Preview:

Source:
https://github.com/jmiddendo/PythonSamples/tree/master/Hangman
Future Iterations:

  • A loop that checks if the user wants to play again.

Dice Game

Description:
This is a simple dice game that rolls two dice and keeps track of the score.  It allows a registration of two players and set a winning score.  The players take turns rolling the dice and getting double the points for a double roll.  There is also section that displays the score and a help screen.
Current Build:

  • Establishes a player model object.
  • Creates a dice model class.
  • Creates two player objects and two dice objects.
  • Designs a controller class that establishes the game functionalities.

Preview:

Source:
https://github.com/jmiddendo/PythonSamples
Future Iterations:

  • No future iterations planned