Yahtzee banner

Yahtzee

9 devlogs
13h 54m 5s

This is a pygame version of the classic table top game Yahtzee. My goal is to create an interactive experience where players can play against an ai and each other.

This project uses AI

Used claude to help with some Yahtzee algorithm research and gave it my readme.md to point out any grammar issues

Demo Repository

Loading README...

georgegk

Shipped this project!

Hours: 13.9
Cookies: 🍪 67
Multiplier: 4.79 cookies/hr

One of my first PyGame games, it is a simulation of the classic tabletop game Yahtzee that includes a 2 player coop and an against AI mode with 4 distinct levels of difficulty. Built with pure python for simplicity and performance. It offers a wide range of features like local coop, VS Ai mode, music soundtracks that automatically play, smooth dice rolls and a custom made scorecard to keep track of your points. It is a great way to experience the Yahtzee game digitally without having to bring out the paper and dice. I had fun building this and improved my development skills a lot especially when it comes to game design and class oriented programming.

georgegk

So I finally fixed the last bugs on the AI and changed some stuff around to make the impossible level harder. I then decided to add some background music, which took some time to find smt that inspired me, and ended up with 2 songs that play the one after the other on a loop. It did take me some time to figure out how to use the pygame mixer but nothing I couldn’t handle. I then did some more testing, fixed a few last stubborn bugs, got an icon for the exe and window, compiled it and finally pushed everything to github. This project is officially finished (at least v1.0)

Attachment
0
georgegk

I tried to make all 4 levels of the ai but they aren’t that good so I will have to fix that soon enough. There are a lot of bugs and you can still pretty easily win at the most difficult level so I am trying to find ways to make a smarter ais cause apparently I don’t really know the meta for this game. This will be a lot more of research to get to the level I need for this game to be releasable.

Attachment
0
georgegk

I figured out how to create a slider and created one that snaps at 4 positions to choose the Ai level and I have started to work on the first level of the Ai.

Attachment
0
georgegk

I did some final debugging and created the main menu and end screen. Right now the local and vs AI buttons do the same thing.

Attachment
Attachment
0
georgegk

I made some progress on the player system adding both players playing in turns. I also made the scorecard functional, changed the available moves to blue to be more visible and fixed several bugs all around the game. Now I need to add some win detection and a main menu and the basic split screen mode should be ready!

Attachment
0
georgegk

I made a scorecard and figured out the general text and line drawing of pygame. Next I will have to make the rows clickable, set the scores and limit tries to 3

Attachment
0
georgegk

Researched and implemented the scoring logic to determine available choices. Additionally fixed another overlap bug when placing down dice

Attachment
0
georgegk

I added a few systems including a proper reroll and a way to hold dice from being thrown. I had to figure out how to do buttons and how to not have overlaps when placing the dice back on the board which was not too hard.

Attachment
0
georgegk

First steps
This is my first time with pycharm so this should be fun, I have had some very basic progress like setting up loops and so on

Attachment
0