This is Version 5.1 of my Yahtzee playing AI. The average score for the AI is approximately 231.2. The average score for perfect Yahtzee playing is 254.6. The "Scores" list shows the scores the AI has earned on its different games. The length of the list is the number of games it has played. The "Avg." variable is the average score. The high is the high score, and the low is the low. The "Type" list shows the different types of ways to earn points. The "Points" list shows the number of points the AI has earned in each category in the game (although it changes very quickly as it goes through 30+ entire games a second). The "Average Total" shows the average number of points the AI has earned in each category in the games it's played. The "Dice" list shows what the dice are at the moment. The "Held" list shows what dice the AI is holding rather than rerolling.
Thanks to the guy on a yacht who invented Yahtzee, as his creation of Yahtzee allowed me to make this. All code by me. Thumbnail also by me. The project contains 753 blocks of code. The AI uses 519 of them to determine what to do, and the other 234 are used to run the game itself. The AI is still in progress. I will be improving it in the future. There are 2 if/then statements labeled inside the code. Those statements contain the thinking that the AI does. Everything else is simply used to make the game work. Averages by Version: 5.11: 231.2 5.1: 230.9 5.0: 226.3 4.2: 218.8 4.1: 210.1 4.0: 202.5 3.1: 192.7 3.0: 181 2.1: 151 2.0: 128 1.0: 111