jfpedroza / parques Goto Github PK
View Code? Open in Web Editor NEWWeb version of the game Parqués, using Websockets (NodeJS, Socket.io, TypeScript, HTML5 Canvas)
License: MIT License
Web version of the game Parqués, using Websockets (NodeJS, Socket.io, TypeScript, HTML5 Canvas)
License: MIT License
When pieces end in a safe position after moving, the turn should only be repeated if all the pieces moved end in a safe position, also avoiding the situation where a piece is moved to a safe, then moved again and the player stills repeats turn.
Players of a room should be notified when other players disconnect and connect
When a player gets three doubles (pairs) in a row, he has the possibility of sending any of his pieces to the end.
As in the original game, players should do a first roll with one die before starting the game. The results of these rolls would determine the first player, where the highest score gets the first place.
If there is a draw, those players should roll again until there is a winner.
It'd be nice to make the game support multiple languages.
Initially, it'd support Spanish and English, but with the possibility to expand it to other languages such as:
The creator of the room should be able to change the name of the room after the game has started (Stage 5)
The Enter button on the home page (Stage 1) should be the default so that people can press Enter and go to the next stage.
The username input on the login page (Stage 2) should be focused by default when entering the stage.
The players should be able to leave the room even if the game already started.
If only one player is left, then that player wins the game
I would be nice that the players could see the rules of the game inside it.
The rules could be in every stage, as a floating button or a right side button, that opens a modal or a div that slides from the right.
The animation done when moving a piece from one position to another can be changed to move to each intermediate position before arriving at the final one.
For example:
Instead of going from pos 1 to 5, it would go 1, 2, 3, 4 and finally 5.
This would reflect the process of counting when playing the real game.
Maybe this feature can be turned off by the creator before starting the game and even after, having also the ability to turn it on again.
The players should be able to change their color before starting the game if there are colors available.
I would be nice to a chat to the rooms, where players can talk. This chat can be available on Stages 4, 5 and even 6.
I'd nice to add sound effects and background music.
The game would have the following effects:
When edition the name on Stages 4 and 5, pressing Escape should cancel the edition.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.