Skip to content

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.

License

Notifications You must be signed in to change notification settings

FogMoe/fogmoeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

pip install pygame

Single-Player Game

python main.py

Click “Single Player” to begin.

Multiplayer Game

  1. Start the Server (on the host machine):
    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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Languages