Project
Pawns-Only Chess
Medium
811 completions
~ 17 hours
4.4To complete this project, show your command of strings, lists, conditions, and loops. Make a game that you can play with your friends or family members!
Provided by
JetBrains Academy
About
Chess is a very popular game, but over time even the classic chess rules may become tiresome. The good news is that there are hundreds of variants. One of them is Pawns-only chess. Let's make a game where players should move their pawns to the opposite side of the board or capture all opposite pawns to win. In this project, you will create a game intended for two players.
Training project
This project allows you to practice and strengthen your coding skills, helping you get ready for more advanced tasks ahead.
What you'll learn
Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Build and print the chessboard.
Generate a game loop and make the program responsive to user's feedback.
It is time for our pawns to move. Introduce basic pawn moves to the program.
Introduce two new pawns moves — capture and en passant.
Implement win and draw conditions to your program. Enjoy the game!
Reviews
6 months ago
During the Pawns-Only Chess project, I learned how to manage a game loop, handle player input, and implement core chess logic like pawn movement, captures, en passant, stalemate, and win conditions. One of the key challenges was correctly detecting stalemate without confusing it with a win — this re ...
Miguel Vega
11 months ago
This is a project that requires planning the solution well and thinking carefully about each step. I have exercised and improved that skill.
4.4
Learners who completed this project within the Kotlin Developer course rated it as follows: