A multiplayer online life simulation game that explores ethics and morality through real-time decision-making. Players perform actions, receive AI-based moral judgments, and experience consequences like lifespan changes, random events, and social interactions.
Built with Python, Flask, SocketIO, and PyQt5.
- β User System: Register and login with secure password hashing
- π§ AI-Powered Moral Judgment: Automatically detects good/evil actions using keyword matching and rule-based logic
- π¬ Real-Time Chat: Multiplayer communication via WebSocket (SocketIO)
- β³ Lifespan Mechanism: Good deeds extend life; immoral actions shorten it
- π² Random Events: Unexpected life events occur periodically (e.g., accidents, lottery wins)
- π§ Custom Rules: Players can add new moral rules during gameplay
- π SQLite Database: Persistent storage for player profiles and action logs
- π₯οΈ GUI Client: PyQt5-based desktop interface for smooth user experience
pip install flask flask-socketio python-socketio[client] requests PyQt5
###2. Start the server
python server.py
###3. Launch the client
python client.py
###4. Play the Game
Register a new account or log in
Enter your character name
Perform actions (e.g., "I helped an old person")
Observe AI judgment and lifespan changes
Chat with other players
Add custom moral rules