An open API service indexing awesome lists of open source software.

https://github.com/fogmoe/fogmoegame

A Monopoly-like game demo. Later, it will use other game engines to reset the client to the web version, and optimize the gameplay, graphical interface, online servers, etc.
https://github.com/fogmoe/fogmoegame

bug demo issues monopoly pygame python unfinished

Last synced: 10 months ago
JSON representation

A Monopoly-like game demo. Later, it will use other game engines to reset the client to the web version, and optimize the gameplay, graphical interface, online servers, etc.

Awesome Lists containing this project

README

          

# FOGMOE

A simple Monopoly-style game supporting both single-player and LAN multiplayer modes, developed in Python using Pygame.

## Features

- **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

## Quick Start

### Install Dependencies

```bash
pip install pygame
```

### Single-Player Game

```bash
python main.py
```

Click “Single Player” to begin.

### Multiplayer Game

1. **Start the Server** (on the host machine):
```bash
python start_server.py
```
2. **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
3. **Begin the Game**:
- The host clicks the “Start Game” button

## Project Structure

```
Game Semi-finished outdated
```

## Multiplayer Details

- 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

## System Requirements

- Python 3.7 or higher
- Pygame 2.0 or higher

## Notes

- 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

## License

This project is licensed under the GPL License.