Install nodeGame
Preparation
- Install the LTS version 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 (for MacOS or Windows) and type:
node --version
You should see something like: v10.16.0
npm --version
You should see something like: 6.9.0
git --version
You should see something like: git version 2.22.0.windows.1
Note: For Windows, Git-Bash (installed with git) is the recommended
terminal. You can open it from the Start menu.
Installation
- Download the nodegame installer.
- Open a terminal and navigate to the folder where you downloaded the
installer.
- Install nodeGame with the command:
node nodegame-installer.js
- Follow instructions on screen.
- For more install options try:
node nodegame-installer.js --help
Running Your First Game
NodeGame has an
Ultimatum Game included in the default
installation. To start the server and play the game follow these
steps:
- Open a terminal and navigate to the nodegame folder
- Start the server with the command:
node launcher.js
- Open your browser at localhost:8080, and select the Ultimatum game
- 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
Read the Documentation
More info available in the project
wiki!