Activity

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