# I wrote a multiplayer boardgame using P5 and sockets, would love some feedback from this community!

**URL:** <https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255>\
**Category:** Gallery\
**Created:** [September 30, 2020, 10:52pm UTC](https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255 "2020-09-30T22:52:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shieldsy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shieldsy/32/10791_2.png) [@shieldsy](https://discourse.processing.org/u/shieldsy)\
**Post date:** [September 30, 2020, 10:52pm UTC](https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255/1 "2020-09-30T22:52:20Z")

</div>

> **[Pente - a free, relaxing, strategic web game for friends](https://pente.io)**

Pente is one of my favorite boardgames, so I wanted to remake it so I could play it with anyone during Quarantine! I would love if you all could take a look and give me any kind of feedback: look, playability, code, etc. Hope you enjoy it!

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [October 1, 2020, 8:25am UTC](https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255/2 "2020-10-01T08:25:41Z")

</div>

Just a thought.  
In these times of fast clicking on an overwhelming amount of options, people go-ahead by their first impression. So, a lovely picture or drawing at startup would help. Also, people do like buttons to continue instead of refreshing the page. I would also separate the (well written) “about” page with a small instruction sentence at the start page.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 1, 2020, 10:42am UTC](https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255/3 "2020-10-01T10:42:02Z")

</div>

Can I play on my own (against myself) just to test it and to see the board?

---

<div class="post-metadata">

**Author:** ![shieldsy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shieldsy/32/10791_2.png) [@shieldsy](https://discourse.processing.org/u/shieldsy)\
**Post date:** [October 1, 2020, 3:10pm UTC](https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255/4 "2020-10-01T15:10:05Z")

</div>

Thanks for the feedback! Yeah, the reset button is the next feature I’ve been working on, but I’ll have to think about how I can give a better preview to players!

---

<div class="post-metadata">

**Author:** ![shieldsy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shieldsy/32/10791_2.png) [@shieldsy](https://discourse.processing.org/u/shieldsy)\
**Post date:** [October 1, 2020, 3:10pm UTC](https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255/5 "2020-10-01T15:10:57Z")

</div>

Yup! Just open the website in two tabs and give yourself your own code.

---

<div class="post-metadata">

**Author:** ![wyattsworlddd](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@wyattsworlddd](https://discourse.processing.org/u/wyattsworlddd)\
**Post date:** [October 1, 2020, 8:40pm UTC](https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255/6 "2020-10-01T20:40:14Z")

</div>

This is very, cool. I’m just starting to dabble into P5 from processing, could you point me in the direction of what library/ reference section of the P5 site you used to figure out how to do the multi client connection? Meaning the part where one player uses a code to connect to another player. I’m really curious how this works if you wouldn’t mind sharing! 😁

---

<div class="post-metadata">

**Author:** ![shieldsy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shieldsy/32/10791_2.png) [@shieldsy](https://discourse.processing.org/u/shieldsy)\
**Post date:** [October 5, 2020, 4:39pm UTC](https://discourse.processing.org/t/i-wrote-a-multiplayer-boardgame-using-p5-and-sockets-would-love-some-feedback-from-this-community/24255/7 "2020-10-05T16:39:10Z")

</div>

Of course! I ended up using [socket.io](http://socket.io) and their “rooms” concept in conjunction with an express node server. Basically, as I see users come in, I use [socket.io](http://socket.io) to create new rooms and tie them to a code. If someone comes in and enters that code, I check (with some validations like number of players) if that code exists and is tied to a room, and then let in or block the new player as appropriate. Finally, after certain timeframes or actions are taken, I “clean up” or delete old codes and rooms. [Socket.io](http://Socket.io) has great documentation on how to use their rooms and it’s really easy to grasp!
