-
Notifications
You must be signed in to change notification settings - Fork 18
Getting Started v7
- status: complete
- version: 7.x
-
Install version 14.x (or higher) of Node.js for your operating system (Win/Mac/Linux).
-
Install git for your operating system (Win/Mac/Linux).
-
Check that node and git are installed. Open a terminal or a command prompt and type:
node --version
You should see something like: v12.15.0
npm --version
You should see something like: 6.13.4
git --version
You should see something like: git version 2.22.0
-
Important: some Linux distributions install an executable named nodejs, and it might cause the installation to break. If this is the case, make a symbolic link from nodejs to node.
-
Important: for Windows, Git-Bash (installed with git) is the recommended command-prompt, and it can be opened as a normal program form the start menu.
- Download the nodeGame installer (right-click, save as)
- Open a terminal and navigate to the folder where you downloaded the installer
- Install the desired version of nodeGame v7 with one of the following commands:
node nodegame-installer.js
node nodegame-installer.js @dev
node nodegame-installer.js @v6
Note: Windows users using PowerShell V2+: @ is also the Splat operator, so you need to escape it:
NodeGame has an Ultimatum Game included in the default installation.
To play it, start the server and follow these steps:
- Open a terminal and navigate to the
nodegame
folder (for Windows, Git-Bash is the recommended command-prompt) - Start the server with the command:
node launcher.js
- While the server is running, open one browser tab pointing to:
localhost:8080
- Open more tabs, click "Play with Bots", or manually launch a bot connecting
to:
localhost:8080/ultimatum/?clientType=autoplay
- Check the monitor interface:
localhost:8080/ultimatum/monitor
Go back to the wiki Home.
Copyright (C) 2021 Stefano Balietti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.