G
G
Glebglebov2017-03-25 11:31:35
PHP
Glebglebov, 2017-03-25 11:31:35

What are the ways for this implementation of the game?

The essence of the gameplay is as follows (everything in the browser):
1. There are tables.
2. A registered user can connect to one of them.
3. There are 5 people at each table, so a waiting screen must be displayed before the table is full.
4. During the game itself, each time you need to choose a random person at the table and "throw" him out.
5. At the end, only one remains - the winner.
So. With what help is it possible to organize the expectation of players, the smooth generation of a random number and its transfer to clients, on the side of which animation will be generated? Plus, the tables are already set up in advance, i.e. after one game ends at the table, another can begin. And there should be many such tables.
I will be grateful for help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Leo Developer, 2017-03-25
@crazy_leo

https://www.npmjs.com/package/sockjs

A
Alexander Aksentiev, 2017-03-25
@Sanasol

There is no smooth random number generation.
If it's just random generation after N time.
And the fact that the client draws an animation for 10 seconds does not mean that a random 10 seconds is generated on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question