I really wanted to make an actual game that I could present to someone to play. I wanted something, not necessarily practical, but entertaining and possibly encouraging me to push my knowledge of coding. Checkers was an ideal option for a game to code because it's relatively simple, so was a good introduction to coding a game.
My code allows the user to play checkers with another player!
I used java to code it. I made a class that runs the game. The class uses a 2D array to run checkers.
The road to the code I currently have was pretty painful. I ran into a LOT of errors. I had to completely remake my code at one point. When I was trying to figure out how to move the pieces, I realized there was a lot of things I had to check for: moved diagonally, captured a piece, moved only 1 square, there is a piece in the square, etc.
I'm really happy with how the game turned out. I can move pieces relatively easily, a player can win the game, and the game works as it should. I even managed to add the "King" element of checkers where I can make a normal piece a king when it reaches the end of the board.
Everything I used in this code I learned at some point in CSA. A LOT of it I forgot, but I was able to get solidify my knowledge of concepts learned this year in CSA.
I want to make a visual that compliments the current version of checkers that is played within the console. Also, I want to figure out other win conditions. For example, winning due to the opponent having no moves.

Log in or sign up for Devpost to join the conversation.