lmjw / werewolves Goto Github PK
View Code? Open in Web Editor NEWA werewolves game
A werewolves game
UI can interact with the server and be able to send commands and receive game updates.
Description
Allow players to join the game using a display name and room id.
Use protobuf streaming to realize bidirectional communication between server & client.
(REST API is good for the client to server request model, but not server to client push.)
Acceptance criteria:
client & server can realize bidirectional communication. The server can push message to the clients when some event triggered. A client can send information to the server to update the game state.
Front-end will be able to communicate with backend using grpc (server streaming) for real-time game state update, and the client will be able to use grpc service to send user commands to the server.
Requirement
As a User, I want to be able to play the werewolves with my friend instantly without login.
Functional requirements
I need a UI so the user is able to interact with the game by (click/touch). (#5 )
This game is a multi-player game, I will need a communication mechanism between client and server to pass players' commands. (#2 )
I will need to be able to identify players after I receive their request and be able to validate the requests. (#3 )
I will need to run many games independently at the same time to support more players.
I will need to be able to start the game, play game and end game. (#4 )
To allow users to be able to play the game very easily, no login will be enforced.
Instead, the user can enter a temp name and get a temp 4(6) digit code to identify their identities and the game they joined. Their identities can remain in the system for several hours(?). After the time expires, the information will be deleted in the system.
Be able to identify the user and the game user joined/created using the user name & 6 digit code
The server will delete the user info after time expires or user click leave site
Build UI component so the user can login, create/join game
This function can be implemented with the redux package
Expected result:
Description
The player is able to use a display name to create a room and get a room id.
I will need to be able to:
The game engine will also have game logic that will evolve and change the game state base on the player's input.
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.