games.monopoly.simple_demo¶

Simple demo for testing the Monopoly game without LangGraph integration.

This script demonstrates the core functionality of the Monopoly game: - Board setup - Player movement - Property purchasing - Rent payments - Game events

Usage:

python simple_demo.py

Functions¶

handle_property_landing(state, position)

Handle a player landing on a property.

print_divider()

Print a divider line.

print_player_status(state)

Print current status of all players.

print_property(property_obj)

Print property details.

print_recent_events(events[, count])

Print recent game events.

run_demo([turns])

Run a simple Monopoly game demo.

Module Contents¶

games.monopoly.simple_demo.handle_property_landing(state, position)¶

Handle a player landing on a property.

Parameters:
  • state (haive.games.monopoly.state.MonopolyState)

  • position (int)

Return type:

list[haive.games.monopoly.models.GameEvent]

games.monopoly.simple_demo.print_divider()¶

Print a divider line.

games.monopoly.simple_demo.print_player_status(state)¶

Print current status of all players.

Parameters:

state (haive.games.monopoly.state.MonopolyState)

games.monopoly.simple_demo.print_property(property_obj)¶

Print property details.

Parameters:

property_obj (haive.games.monopoly.models.Property)

games.monopoly.simple_demo.print_recent_events(events, count=5)¶

Print recent game events.

Parameters:
  • events (list[haive.games.monopoly.models.GameEvent])

  • count (int)

games.monopoly.simple_demo.run_demo(turns=20)¶

Run a simple Monopoly game demo.

Parameters:

turns (int)