Square Based Game

As a final project, you’ll make your own game using Python and PyGame.   You can do one of the games I suggest here, or you can invent your own.  In either case you should follow the procedure here.

View

Your game “board” should be a grid of squares, with room for things like score, “win” messages, etc.  Decide how many squares you’ll have, and how big each one will be.

Model

Our tic-tac-toe game had a single list with nine integers to represent the state of the board.  It also had variables for “turn” and “win”.  Write out your entire model, with initial values for the variables and some notes.  For Tic Tac Toe, it would look like this:

game = [0,0,0,0,0,0,0,0,0]
winner = 0
turn = 1

Its possible that your model might change based on the needs of your game, but you should do your best to think of everything.  Remember that you’ll draw the game board just from the model.

Stages

You’ll write your game in stages.  Think of at least three stopping points where you should be able to run your game.  It won’t be a game yet, but something should happen.  Describe what you’ll ‘print’ or see in the window at this stage.  Will any user interaction work yet?

Check In!

Turn in the assignment on Google Classroom with your view and model descriptions.   Do this before you start writing code.

Resources

Snake