⚠️ Note: You cannot run this in MATLAB Online.
To play the game, you do not need to download the server files, as long as
monopolyinmatlabserver-production.up.railway.app is accessible and not returning a 404.
- Locate the
play.mfile. - Run
play.mto start the game.
Inside play.m there is a setting called dev_mode.
-
dev_mode = false(default)
Connects to the production server.
Use this if you are just trying to play the game normally. -
dev_mode = true
Connects to a local server atws://localhost:8000/ws.
Only set this totrueif you have downloaded and are running the server on your own machine.
- On the first run, the game may cause MATLAB to restart.
- If MATLAB does not reopen automatically, start MATLAB manually and run
play.magain. - After the initial launch, it should run normally.
If you’re using a VM or a slow PC, loading may take longer — please be patient.