← Back to list

Pentago

December 20, 2021

Pentago

Github Repo →

From the first moment I learned how to play the game Pentago, I was fascinated. I knew that it would be a fantastic game for a web app. If you don’t know Pentago is a much more complex version of tic tac toe. Two players alternate placing pieces on a 6x6 grid of spots. At any point during the game, a player can rotate one quadrant of the board 90 degrees in any direction instead of placing a piece for their turn. The object of the game is to get five pieces in a row either horizontally, vertically, or diagonally.

For this implementation of the game, I utilized React.js. This allowed me to create a fast, efficient, and fully featured version of the game. My implementation retains a full game state history allowing users to undo moves all the way back to the beginning of the game. It also uses a matrix rotation algorithm to calculate new piece positions.

In the future, I would love to implement automatic win detection, online multiplayer, and other features that would really polish off the project.

All in all, this was quite an enjoyable project that really gave me a taste of the world of web development.


Go to Next Project →