When you forget to bring your board game...

in #boardgame6 years ago (edited)

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

So this website was done and deployed easily with now.sh.

Screen Shot 2018-07-15 at 11.11.01 AM.png

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...

superoo7.png

Sort:  

You have a minor misspelling in the following sentence:

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 Assasin need to choose who is the Merlin to assassinate.
It should be assassin instead of assasin.

This post has been curated by TeamMalaysia Community :-

To support the growth of TeamMalaysia Follow our upvotes by using steemauto.com and follow trail of @myach

Vote TeamMalaysia witness bitrocker2020 using this link vote for witness

blabla black sheep