Inspiration

We wanted to show the principles of P2P protocols and so we thought that there was no better way than with a game. But not just any game, our games each explore different aspects of P2P and secrecy techniques even when everyone has the same game on screen.

What it does

It's a program where anyone can create a room, this room is not hosted but shared with every peer that joins. In that way everyone has the same game.

But beware, there are games where secrecy is needed (p.e. BatleShip, Minecraft or Penalties) so, to prove that P2P can be secure between hosts even when everyone has the same game state we used a PK infrastructure where it was needed most.

How we built it

We used mainly python to develop all the interfaces and logic of the aplication. Mainly using pygame

Challenges we ran into

Setting up the P2P network was no easy task, we spent more than 1 hour just debating just how to handle the peers, let alone programming all of it.

Accomplishments that we're proud of

Our joy was immeasurable after the first game (Battleship), specialy when we saw each others boats sank correctly. We are also very proud of the minecraft and karting games for they were very rewarding to complete and play.

What we learned

We learned a lot about P2P networks, something we knew existed but never actually toyed with it.

Also, we learned a lot about pygame, which was fun.

What's next for Friv2Friv

Some games feel a bit dry, but that's because we didn't focus on making the games fancier, because that was not on the "scope" ( functional and P2P related ).

Built With

Share this project:

Updates