nodegame | Complete nodegame repository with examples and documentation | Game Engine library
kandi X-RAY | nodegame Summary
kandi X-RAY | nodegame Summary
Fast, scalable JavaScript for large-scale, online, multiplayer, real-time games and experiments.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- starts the server
- Install node packages .
- Magic module .
- Initialize a Spinner .
- Get all git modules
- Configures the logger .
- Prints the program .
- Clones a module
- Checks that the parent nodes are renamed
- Prints a node game .
nodegame Key Features
nodegame Examples and Code Snippets
Community Discussions
Trending Discussions on nodegame
QUESTION
Typically a Shiny server would spawn separate instances for individual users, so that multiple people can individually use the same app at the same time. This answer shows how to make a simple multi-user chat room using Shiny, and this answer explains how multiple users can connect to the same session via direct IP. I got the chat example to work, two users both see the messages immediately as they're being sent, and as such can chat to one another.
I'm wondering if it is at all possible to use Shiny for an (experiment) scenario where two users, interacting with one another, would see different GUI elements on their respective screens, and different output, depending on who's turn it is to "play". For example, if user1 is the "starting player", he would see three buttons and click one of them, a relevant image would pop up for user2 (not for user1), user2 clicks a button (that he thinks matches the image), and then a relevant image pops up for user1, and user1 clicks a "correct"/"incorrect" button to send feedback; they should not see who clicks which button, nor the image the other one sees (if actually hiding GUI elements is tricky, graying out/disabling them intermittently is also fine, as long as they don't see what the other does).
Or more graphically:
...ANSWER
Answered 2019-Jun-08 at 18:58I had the same challenge a couples of years ago when i implemented "Risk" (the board game) as a shiny app.
A quick outline how i approached it back then:
If you use the session
parameter in the server function, you can create a local/secret reactiveValue()
within that session / for that user and you can set reactiveValues()
outside the server function for "global infos" that are accessible across sessions.
The latter approach is probably the more surprising one as we are usually "forced" to define reactive
behaviour within the server function. But it works, see the example below.
Reproducible example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nodegame
Download the latest version of node.js for your platform
Download the latest version of git for your platform
Download installer, and install nodegame: node nodegame-installer
Enter installation directory.
Start the server with the command: node launcher.js
Open one tab pointing to localhost:8080
Select Ultimatum game
Open more tabs, or start a bot through the waiting room interface
Check the monitor interface at localhost:8080/ultimatum/monitor
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page