Vibe coding a chess game through Chat-Gpt 5

Table of contents
1) Chat Gpt-5
On August 7 2025, Open AI launched it’s latest and AI model Chat Gpt-5. The model was marketed as best for coding. It was said that one could build entire app and website in just hours. If this was true, then it would easily replace Junior Devs.
I tried it out and here are the results.
2) Game of Chess
We all are familiar with Game of chess and have played Chess at least once in our life time. Now a days Chess is becoming second most popular game in India after Cricket. With Win of ‘Gukesh’ as World Champion and ‘Divya’ as Women World Champion, Chess is gaining it’s peak in India.
I thought to build Game of Chess through Chat Gpt-5.
We have 8 Pawns, 2 Rooks, 2 Bishops, 2 Knights, 1 Queen and 1 King on both white and black side.
Here's a breakdown of the moves for each piece:
King: Moves one square in any direction (horizontally, vertically, or diagonally).
Queen: Moves any number of squares in a straight line (horizontally, vertically, or diagonally).
Rook: Moves any number of squares horizontally or vertically.
Bishop: Moves any number of squares diagonally.
Knight: Moves in an "L" shape: two squares in one direction (either horizontally or vertically) and then one square perpendicularly.
Pawn: Moves one square forward, or two squares forward on its first move. Captures diagonally one square forward. Pawns can also be promoted to other pieces under certain conditions. Like when a pawn reaches to end it can be promoted to any other piece.
3) The Code and execution
In one prompt only, Chat Gpt-5 was able to generate code of 480 lines in Python. Which is indeed a great token generations per prompt. This is a huge milestone since, models like Gpt 4 could generate only 150-200 lines of code at most in one generation. Only Gemini pro could generate this huge code in one prompt.
Of course code had a huge error. It declared a recursive function and forgot to add a terminating statement leading to Recursive runtime error - ‘RecursionError: maximum recursion depth exceeded.’
When I asked to fix the error, it gave me new code with 215 lines, which is a significant drop.
This time code worked well on Terminal and chess game was working. We can play chess on our terminal by executing the file. The game worked well.
You have to type your move in format starting position and end position for example in first screenshot - ‘g1f3’ . The game will identify our piece, Knight in this case. According to the piece, it decides whether the move is legal or illegal. If illegal it will show ‘illegal move’ message. If it is legal it will play the move.
After each move, the game is executed again keeping previous move to give a turn to our next opponent. There is no flashy UI/UX used since, whole game is only executed in our terminal.
Here are few screenshots of game:-
It was successfully able to find illegal move.
4) Conclusion
Chat Gpt-5 can replace all junior Devs and can build website in hours is a little over statement. Like it can generate big blocks of code but it can lead to some serious errors and bugs. To solve those, we need strict human monitoring and review.
If we want to build whole website, we need to build full software architecture, which is a big task on it’s own. There are various factors to be taken into consideration while building software architecture. We can’t just prompt Chat Gpt to generate a full working website. We need to spend time in planning and plotting various components of our website, Which require time. We can’t fully rely on these models.
I tried to play Game of Chess against bot of Elo rating 250 and 1000 with Gemini pro. Which will be topic of my next blog.
Thank you
Subscribe to my newsletter
Read articles from Atharva kulkarni directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
