Terraforming Mars Boardgame
The board game is great, this repository highly recommends purchasing it for personal use. If you want to play with people online, you can use this tool.
Join us on Discord here.
You can try online here. Please post any issues found. If you plan on playing long running games it is recommended to host the game locally. This demo site is currently not stable and gets restarted during each push to master
. A multiplayer game will remain available for 10 days, after this delay it will be flushed from the database. Unfinished solo games are flushed after one day. As this repository is gaining in popularity we attempt to make this demo page stable but it can't be guaranteed that your game will not be lost. Running the game locally will always be straight forward and it is highly recommended to host the game locally and provide the server ip to other players.
You can run the game server locally if you have npm
and node
. To start the game server run the start
script.
npm install
npm run start
This will start the game server listening on the default port of 8080. If you then point a web browser to http://localhost:8080 you will be on the create game screen. To change this port from 8080, add PORT=<new port>
in your .env
file.
Pointing your web browser to http://localhost:8080/games-overview?serverId=_SERVER-ID_ will provide a list of all games available on the server. The secret SERVER-ID is available from the console after starting the server and required to access game administration pages like the games overview.
Additional information on how to setup the game server locally can be found here (short version) and here (detailed version).
Additional information on how to setup the game with docker can be found here.
To set up an HTTPS sub/domain for use with this project, set the paths for KEY_PATH
and CERT_PATH
in your .env
. If you do not have a TLS cert/key for your domain, you can get one for free from certbot.
Thanks goes to these wonderful people: