This is based on the original game that you play physically. The controls for the game: Game Setup - For a single player game - click "solo" - For a multiplayer game - click "group" then select how many players are going to be playing (up to 4) - To start the game with these settings - click "start" Gameplay Click "roll" to roll the dice (up to three times) The "hold" button has two states: "hold" and "back". The "move" button will either put the dice in hold or put them back in the playing field based on the "hold" button. If "hold", the "move" button place your dice in the hold. If "back", the "move" button will put your dice back into the playing field. The "score" button will score your roll The cross hair on the score card tells you whose turn it is and how and where the roll will be scored Click any line in the white area to move the row highlighter to that line, this is where your roll will be scored. The arrow points to the current player turn and the column highlighter will outline the column registered to that player Click the dice to select them. A reticle will appear around the selected dice, this reticle is green in the playing field and yellow in the hold. Tips: If you put all 5 dice in the hold, you will not able to roll them as you have set them all aside for later scoring If a player rolls a yahtzee for the first time, it does not matter what line that player selects, clicking score will always score the yahtzee. This will be helpful later in the game. When rolling your dice, keep in mind that each player has three rolls. After that player's third roll, they must score their roll and the next player will take their turn. The "hold/back", "roll", and "move" buttons will disable after the third roll leaving the "score" button being the only option. If a player attempts to score in a slot that has already been filled in nothing will happen.
I started this project in Scratch 1.4 (better paint editor; easier to use the line tool without antialiasing) and later transferred to Scratch 2.0 when I needed to use the custom blocks to increase the refresh rate of the stamp tool that was used to print the scores on the scorecard. Scoring the straights required a sorting algorithm that I borrowed from Jens' Sort project An updated version of my original project: I had to go into the scripting to fix the yahtzee bonus algorithm; initially, it did not work as the scoring script had some bugs associated with that and few other things The yahtzee logo animation is now smoother with a cleaner shimmer effect. I did this in Gimp (a free and open source competitor to Adobe Photoshop) which took me quite a while to finish due to fact that i had to first save each of the 150 frames as individual images so I could later add them as layers for the final image. To those who do not know how to make images with animations, here are few tips: first, the file type and extension; any image you see that is animated will be a GIF image file and will have a .gif at the end of the file name (example: animatedImage.gif) Second, any animation is made by using frames. In my case i had 150 of those and each frame was part of the shimmer effect which moved from the left side of the image to the right. When using Gimp or Photoshop, you would create images as layers. When working with layers you can show or hide them. This allows you to create an animation. When finished you will need to export your image as simply saving the image would create a Gimp file or a Photoshop file. Once you have done so, you will be given quite a lot of options to choose from, in this case, go with GIF file type. When you are finally ready to save this file, take a closer look at the dialog box; there should be a checkbox that will allow you to save your image as an animation. After clicking it, you will see some additional options, one of them being the frame refresh delay in milliseconds. Change this value to set the animation speed. Note you may have to reexport this file a few times to get your animation at the speed you are looking for and viola you now have an animated image :)