A simple Monopoly-style game supporting both single-player and LAN multiplayer modes, developed in Python using Pygame.
- Single-Player Mode: 1 human player versus 3 AI opponents
- Multiplayer Mode: Up to 4 players over a local area network (LAN)
- Game Rules
- Collect coins and return to your Home cell to win
- Victory condition: have 100 coins and land on your Home cell
- Reward Cell (Yellow): roll the dice to gain coins
- Penalty Cell (Dark Blue): roll the dice to lose coins
pip install pygame
python main.py
Click “Single Player” to begin.
- Start the Server (on the host machine):
python start_server.py
- Create or Join a Room:
- Run
python main.py
- Click “Multiplayer”
- The host clicks “Create Room”
- Other players click “Join Room” and enter the server’s IP address
- Run
- Begin the Game:
- The host clicks the “Start Game” button
Game Semi-finished outdated
- Players are assigned as Player 1, 2, 3, and 4 in join order
- Only the active player may roll the dice on their turn
- AI actions are calculated by the host and synchronized to all clients
- Game state is kept in sync across all clients in real time
- Python 3.7 or higher
- Pygame 2.0 or higher
- All players must be on the same LAN
- Ensure your firewall allows traffic on port 29188
- The server must remain running while the game is in progress
This project is licensed under the GPL License.