In this tutorial we will make a pretty basic game where a player can press a button and it will roll 5 dice. We will display images instead of numbers to show the state of the dice. As we expand on this tutorial series we will program the game to recognize the state of each of the dice and assign the combine dice a score. We will be treating the dice kind of like a poker hand and will use terms like full house or straight. The only exception would be if all 5 dice landed on the same side and it would need to register that as 5 of a kind.
What you will need to follow this tutorial:
- Microsoft Visual Studio 2010
- Dice Images
Dice Images: Right click on each of the below images and save them somewhere that you will be able to find them later.
C# Dice Game Tutorial Series Part 2:
In this part of the tutorial series we will be adding a label to display our roll results. We will be basing the results off of a poker hand, with the addition of a five of a kind result. This tutorial is aimed at helping to better understand using arrays, for loops, if statements, booleans, and switch statements. The code could be made shorter and optimized. One of the reasons for making the code a little more lenghty and using different ways to initialize the arrays and using different loops to obtain the results we want is so that you can get some practice using these different tools.
Hopefully, you find this tutorial informative and easy to follow. This is my first tutorial series (2nd actual tutorial), please, leave me feedback on how I can improve. Also, let me know if you would be interested in continuing this tutorial series or starting on something different. Don't forget to +1 and Like this post.
C# Dice Game Tutorial Series Part 3:
This is the 3rd and final part of this tutorial series. I lost audio toward the end of the video and then it came back, so I inserted narration on top of the lost audio to try and explain what was happening.
In this tutorial we will add a second player to the dice game and get the game to compare each persons dice to see if there is a winner or if the rolls tie. We will be creating a player class and looking at how we can use getters and setters to access and manipulate private data. Also, we will be looking at how to access public methods from the player class when we are in our form class.
In this tutorial we will add a second player to the dice game and get the game to compare each persons dice to see if there is a winner or if the rolls tie. We will be creating a player class and looking at how we can use getters and setters to access and manipulate private data. Also, we will be looking at how to access public methods from the player class when we are in our form class.
Hopefully the video is easy to follow and can provide some useful information. Sorry for the audio problems toward the end, but I tried to patch it up and you should still be able to follow along and understand what is going on.
It looks like the activity on your blog stopped in 2012. You should keep going. I'm using the tic tac toe tutorial for a high school programming class. Nice pace and just enough detail in the explanation for a beginning student.
ReplyDeleteI enjoyed your video. I would love to see more videos as you did a good job explaining things in detail.
ReplyDelete