PyChess banner

PyChess

17 devlogs
31h 34m 27s

A chess game in python

This project uses AI

Used Chatgpt for some UI fixes and writing the readMe

Demo Repository

Loading README...

mondalpritam2010987

Shipped this project!

Hours: 31.57
Cookies: 🍪 417
Multiplier: 13.22 cookies/hr

Shipped a Python chess engine with a Pygame UI and a Minimax-based AI.
Learned how to model game state, generate legal moves, and connect AI decision-making with real-time rendering. This is not a perfect project but feedbacks will make this better.

mondalpritam2010987

I have made some UI changes, bug fixes and AI optimization

Attachment
0
mondalpritam2010987

It is close to completion. I fixed some logic and UI bugs

Attachment
0
mondalpritam2010987

It has been a minute……..
I have implemented SAN move log
I also have developed minimax depth 2 engine.(It is not great though but it plays)

Attachment
0
mondalpritam2010987

I have added some UI elements and fixed some check, checkmate related bug.

Attachment
0
mondalpritam2010987

I have implemented random AI move generation. Some bugs are still there.

0
mondalpritam2010987

I have added move hightlight for every move.

Attachment
Attachment
0
mondalpritam2010987

I have fixed the bugs for castling and en passant

1

Comments

Foxreef
Foxreef about 2 months ago

Holy hell

mondalpritam2010987

I have added castle and en passant.

Attachment
0
mondalpritam2010987

I have implemented en passant and pawn promotion

Attachment
0
mondalpritam2010987

I have implemented naive algorithm for the checks, checkmate and stalemate.

Attachment
1

Comments

mondalpritam2010987
mondalpritam2010987 about 2 months ago

I just learnt that this version of algorithm uses O(n^2) complexity

mondalpritam2010987

I have fixed some input issue, piece movements issue.

Attachment
1

Comments

developergirishgiri
developergirishgiri about 2 months ago

nice plz give me vote also and follow me

mondalpritam2010987

I have added all the other pieces moves. it was copy paste logic most of the time

Attachment
0
mondalpritam2010987

What I have done ->
-Rook moves
-Moves for both sides
I have to add moves for other pieces and generate valid moves

Attachment
0
mondalpritam2010987

I have implemented pawn moves and captures for white side only.

0
mondalpritam2010987

The game now generates valid moves and user can undo moves using special keys.

Attachment
1

Comments

Mujtaba
Mujtaba 2 months ago

its looking good bro !

mondalpritam2010987

I have implemented moves in the but valid moves are still in progress

Attachment
0
mondalpritam2010987

After some decisions I finally made the board

Attachment
1

Comments

aloyak
aloyak 2 months ago

looks good!