When you forget to bring your board game...

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
ยท@superoo7ยท
0.000 HBD
When you forget to bring your board game...
So, here's the story...

Today we had a family gathering and all my families are staying together, however, we forgot to bring our board game out for this. Since most of us are fan of inductive game, therefore I decided to code a website just to play the game ๐Ÿ˜.

The game is called Avalon, which is slightly different from Wolverine, because you just need 5 players to play this game. The game started with doing missions where the good side loyal servant would want the mission to be success, and the bad side assassin will try to make the mission fail. In addition, the players in the game will not die compared to Wolverine, and there is a plot twist at the end of the game, where the bad side Assassin needs to choose who is the Merlin to assassinate. If assassin manage to figure out who's the merlin then the bad guy wins.

![screencapture-avl-ylcrhpkxvj-now-sh-2018-07-15-11_06_32.png](https://ipfs.busy.org/ipfs/QmQ7kBrnBMMNEy55otWXcTamd35r3h1UPTVRk6vG3vj5z9)

So this website was done and deployed easily with [now.sh](https://zeit.co/now).

![Screen Shot 2018-07-15 at 11.11.01 AM.png](https://ipfs.busy.org/ipfs/QmXErKtTJpcLyAmChVfZasT4ZeuHbR3cbWdCZvXkwTLmFS)

The stack are as follows TypeScript, Express, and Javascript on front end. There is 2 classes I had created, the first status class will determine what role you are, and the second mission class is meant for doing missions.

How the website works is that all the buttons are added with event listeners and it will fired POST or GET request to the express server. So, the express server is used as a State Management for multiple users playing the game. ๐Ÿ˜‚

I initially wanted to code the back end with Golang in order to try out so go features for handling concurrency. However, I ended up being in my comfort zone using Express which solve the issue quickly.

That's all for me today, will be quite busy these days working on several projects...

<center>![superoo7.png](https://ipfs.busy.org/ipfs/QmXb1CJmX2hTPKxF7to6aw6dpPkRAwt1d6gCXQgTrQ8mxt)
</center>
๐Ÿ‘ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,