Tuesday, January 21, 2014

Dice Football Computer Game

For quarter 2 stats we needed a project to do so Joe, Dan and I, started brainstorming of a project that we should do. Then Dan came up with the idea of a dice football game that his family played when he was younger. We thought it would be a good idea because it had to do a lot with this class.

We had to use python to make the game and Joe, Dan and I had no idea what it was and how to use it. Mr. Pethan showed us some videos on how to do it. We had to make a bunch of codes to make our game work. The game worked pretty much like the normal game of football like you could get TD's and Interceptions. We had to make codes for all of that to work in the game.

We had the player either select pass or run. If they chose run they would roll the dice and whatever they rolled they would get unless the defensive roll was doubles. If they chose to pass it they would have to get even number if they get doubles they would automatically get a touchdown. If they defense got doubles they would get a sack if it adds up to what the offensive rolled it could be an interception.

If we had to do this project again, we would probably make a function for kicking off and make the game a little better. Overall it was a very fun and difficult project to do.

No comments:

Post a Comment