website icon Felipe Mateus

🎲 Domino Game Meet the Online Multiplayer game

game image

Today I started to make a multiplayer online domino game made in html5 I'm using the Dice font to make the dots representing the domino numbers.

However, the biggest challenge is undoubtedly making the node script that will run on the server. Because this script is giving me work because it will be responsible for doing all the game control.

He will see whose turn it is to play if someone is cheating, as well as if someone has won, folded, etc. However all these possibilities need to be dealt with otherwise the game is left with a lot of holes.

Game Image 05/31/2017
Server Code Image 05/31/2017

Creating the Pass Time Function

Today I added the function to pass the turn, this function will be used whenever the player doesn't have the card in hand to play. Because if a player uses pass the turn having the card, he can run the risk of losing the game. Whoever gets all their cards on the board first wins.

However, I also created a token where it signals the player when it's his turn to play. Especially when it's not the turn to choose options are disabled. However, if the player chooses a card that is not allowed, the border will turn red, signaling that it is an incorrect move.

Game Image 01/06/2017

Token Upgrade

Today I have improved the game token so that it is clear to all players whose turn it is in the game. So I put 4 colored boxes in the stats area with radio in order to show who has the token. In this sense I also put a message that will be shown when a player manages to place all the cards on the board.

Game Image 02/06/2017

domino game reset

Today 03/11/2017 I made a change in the domino code now when a user closes the section the game restarts automatically and displays the message “Waiting for players”. As well as putting it online on the web the address is at the end of this post.

I updated the project inspired by the source code of my microblog. Because it is done in angular, it uses the typescript library so I passed the source code of this project to typescript.

Update on 12/24/2020

Today 12/20/2020 I updated the project front code adding SystemJS and a modal when asking for the username. I also modified the backend code to run with eslint.

Play and Test Dominoes

To install and test the game just install using the command below.

$ npm i domino-game -g $ domino-game

To test the Game use the link below.

Play now  download

Exit mobile version