Inspiration

Chess is something I've wanted to build for a while, and this Hackathon seemed like a perfect opportunity. Rather than just programming all the logic, I decided to add the extra challenge of serving it locally so that two people can play against each other from different computers.

What it does

It's Chess! Two people play against each other either over the same screen, or from different computers

How we built it

Built using Python, Pygame, and a host of built-in modules. There is a backend containing all of the game logic, which is actually playable directly using the terminal. Pygame handles the front end, and send commands to the backend. The user interfaces with the program primarily with the mouse, along with a couple keyboard inputs.

Challenges we ran into

Mainly dealing with serving it locally in real time. It was a huge headache. The game logic was involved for sure, but wasn't super challenging in comparison to getting the two computers to talk to each other. While the final product works great in my own home, it is not transferable without significant modifications to some of the code.

Having the two game instances accessing the same data file at the same time also presented a challenge, and may still be an issue if the users play too quickly.

Accomplishments that we're proud of

It works! It's entirely playable, with a few limitations. It seems like such a small detail, but I'm also proud of the code that allows the game window to be resized with all aspect ratios maintained.

What we learned

Do your reading first about a technology, and only start writing your code once you have a plan.

What's next for Chess PvP

The world! Which will involve rewriting huge portion of the program...

Built With

Share this project:

Updates