Chess banner

Chess

2 devlogs
13h 39m 49s

A chess game I made in Godot. It started as a basic two player game and I kept building on top of it until it felt complete.
The game has all the standard chess rules (castling, en passant, pawn promotion, and all the draw conditions like the fif…

A chess game I made in Godot. It started as a basic two player game and I kept building on top of it until it felt complete.
The game has all the standard chess rules (castling, en passant, pawn promotion, and all the draw conditions like the fifty move rule, insufficient material, and threefold repetition). It also has a computer opponent with three difficulty levels. Easy plays randomly, Medium and Hard use Minimax with the difference being how many moves ahead they calculate.
There’s a main menu, a mode selection screen, a difficulty selection screen, and an options menu where you can control the music and sound effects volume. The options menu works from both the main menu and mid game.
It’s not a big project but it ended up being a good exercise in games logic.

This project uses AI

I followed a tutorial of making a chess game from Youtube, and he might have used AI and not told us.

Here is the playlist: https://www.youtube.com/playlist?list=PLd_56bdSJ-tS4-q1gczTdKJhqMep3Ij_w

this covers only the 2 players mode version without the main menu, options menu, sound system, computer mode. I added all of that without the tutorial.

Also i used claude to help me fixing some bugs.

Demo Repository

Loading README...

yousseifindx5

Shipped this project!

Hours: 13.66
Cookies: 🍪 42
Multiplier: 3.08 cookies/hr

I built a chess game in godot. Started by following a tutorial for the base game, then kept adding things on my own (as computer opponent with three difficulty levels using Minimax, an options menu with volume controls, proper scene navigation with a GameManager handling state between screens, and draw scene).

The hardest part was the game logic. There was a bug where the computer was wiping pieces off the board without actually moving to them, took me a while to figure out it was a board restoration issue inside the Minimax simulation. Once that was fixed it actually played like a real opponent.

Pretty happy with how it turned out.

yousseifindx5

I added a computer opponent with three difficulty levels. The computer uses the Minimax algorithm where easy plays randomly, medium searches two moves ahead and hard searches three. Fixing a bug where the computer was removing pieces from the board without moving to them took a while to track down but made the computer actually playable.

I also added an options menu accessible from both the main menu and mid game, with sliders for music and sound effects volume. The background music stops when a game starts so the move sounds come through clearly, but u can turn it on again from the option menu in the mid game.
On the navigation side, I added a mode selection scene and a difficulty selection scene between the main menu and the game, with a game manager autoload, to handle the state between scenes.

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
yousseifindx5

I made a chess game on godot, contains all rules of chess like checkmate, stalemate, checks, moves of each piece, promotion of pawns, 50 moves rule and other.

Also i made Main Menu Scene, White wins Scene, Black wins Scene, with all of it’s functionable buttons.

Attachment
Attachment
Attachment
Attachment
Attachment
1

Comments

D4rsh
D4rsh 2 months ago

Glad to find a fellow Godot dev