Fork from github.com/lamarios/monopoly [link removed for privacy reasons] It seems like Monopoly but it isn't. This projects has nothing in common with monopoly. Maybe original version, but as you can imagine this isn't.
alkeon 1362cb8c30 Background sound that alert player turn | пре 4 година | |
---|---|---|
game | пре 4 година | |
manager | пре 4 година | |
LICENSE | пре 4 година | |
README.md | пре 4 година | |
py.py | пре 4 година |
First commit of repo is lamarios base code from which this project forks. This means, first commit is completely from lamarios github.com/lamarios/monopoly. All the code is GPL, first commit is GPLv3 by lamarios and the rest is GPLv3 by alkeon.
The change from lamarios code is that this librepoply is more automatic. 200$ from GO, paying when you are on someone property, moving player... Even bank player is a little obsolete but well, is okay ^^
This repo is split in two different applications, the game itself and a game launcher. The launcher is a small application to launch new instance of the game container.
The application can run without any environment variables. Note that video chat and microphone access might not work if the software is not running under HTTPS (enabled by default).
Name | Description | Default | Required |
---|---|---|---|
PORT | Which port to run the application on | 8443 | No |
HTTP_TLS_KEY | Path of the SSL key | 'key.pem' | No (but recommended) |
HTTP_TLS_CERTIFICATE | Path of the SSL Certificate | 'cert.pem' | No (but recommended) |
HTTP | Set to 'true' to disable https. To use if you want to run the game behind a HTTPS reverse proxy for example | 'false' | No |
docker run -p "8443:8443" gonzague/monopoly
Add environment variables from above relevant for your use case
This require node to run.
First the ui needs to be build
cd game/client
npm install
npm run build
Then we can start the server
cd game
npm install
npm start
The launcher is a simple web application that will help launch multiple instances of the game and reverse proxy to the instances. It must be ran as a docker container as it needs to communicate with the game instances that will run as containers.
The application needs to be able to talk to a docker host. Note that video chat and microphone access might not work if the software is not running under HTTPS (enabled by default).
Name | Description | Default | Required |
---|---|---|---|
PORT | Which port to run the application on | 8443 | No |
HTTP_TLS_KEY | Path of the SSL key | 'key.pem' | No (but recommended) |
HTTP_TLS_CERTIFICATE | Path of the SSL Certificate | 'cert.pem' | No (but recommended) |
HTTP | Set to 'true' to disable https. To use if you want to run the launcher behind a HTTPS reverse proxy for example | 'false' | No |
DOCKER_SOCKET | The path to the docker socket | /var/run/docker.sock | No |
DOCKER_HOST | If connecting to the docker host via http | No | |
DOCKER_PORT | The port if connecting to the docker host via http | No | |
DOCKER_NETWORK | The network which the new games will be started. It must be the same network as the manager. If not set the reverse proxy to the games is not going to work. | YES | |
GAME_CONTAINER_PREFIX | This will be use to prefix the name the new containers | monopoly-game | No |
GAME_TTL | How long in hours before killing an inactive game | 24 | No |
MAX_GAMES | Maximum number of games to be ran at the same time | 500 | No |
GAME_IMAGE | The docker image to be used to run the games | gonzague/monopoly | No |
If you're connecting to the docker socket directly, otherwise use the DOCKER_HOST and DOCKER_PORT environment variables.
# The network creation is only for the example, you may not need to create it
docker network create monopoly-network
docker run -p "8080:8080" -v "/var/run/docker.sock:/var/run/docker.sock:ro' --network="monopoly-network" -e "DOCKER_NETWORK=monopoly-network"
Add environment variables from above relevant for your use case
No, this isn't official and it isn't that similar to the game from 1933. This game teleports players, is a neverending game and also when you are bankrupt you win. That rich people is absolutely a loser. A loser with a ferrari maybe, a loser with more money than the rest of the population but still a loser. Is this librepoply ethical? Maybe or maybe not. Is this game related with idea of eternal recurrence by Nietzsche? Maybe, maybe. Maybe is just another *poly game? Not even close. That's clear. Why are you reading this if you could play the game?