So I was playing Yahtzee with some people while vacationing in Europe (WHAAAAAT, Yahtzee is a fun game!), and I started thinking what it would take to make a video game of it. I wasn't thinking about making a full release with all the bells and whistles, but just the guts.
Read more for source code.
So I was playing Yahtzee with some people while vacationing in Europe (WHAAAAAT, Yahtzee is a fun game!), and I started thinking what it would take to make a video game of it. I wasn't thinking about making a full release with all the bells and whistles, but just the guts.
I figured I should be able to make something as simple as Yahtzee in around 2 hours with .NET. Using .NET means I don't have to fight with graphics, input, or anything really, I can just focus on the getting the game done.
In the end it took just under 2 hours of coding, and about 30-45 minutes of debugging. What I was most proud of was that I was pretty close in my estimate of how long it would take me to write.
I'm sharing this for two reasons: First, now everyone can play Yahtzee with my tiny 24k .NET 2.0 app. Second, I felt this was a good exercise for me as a programmer. Take a game that is relatively easy and you know inside and out and see how quickly you can make it. This can help you learn more about your own programming abilities, and you'll have a fun simple game to play in the end.
Here are the links to the game and the source code:
YahtzeeSharp.exe
YahtzeeSharp.zip
So try it and share. Can you write your favorite game in the time you think you can?