haive.games.monopoly.standalone_demo ==================================== .. py:module:: haive.games.monopoly.standalone_demo .. autoapi-nested-parse:: Standalone Monopoly demo with minimal dependencies. This script provides a self-contained demonstration of the Monopoly game without relying on external dependencies like langchain. Usage: python standalone_demo.py Classes ------- .. autoapisummary:: haive.games.monopoly.standalone_demo.PropertyColor haive.games.monopoly.standalone_demo.PropertyType Functions --------- .. autoapisummary:: haive.games.monopoly.standalone_demo.calculate_rent haive.games.monopoly.standalone_demo.create_board haive.games.monopoly.standalone_demo.create_players haive.games.monopoly.standalone_demo.get_property_at_position haive.games.monopoly.standalone_demo.handle_property_landing haive.games.monopoly.standalone_demo.move_player haive.games.monopoly.standalone_demo.print_divider haive.games.monopoly.standalone_demo.print_player_status haive.games.monopoly.standalone_demo.print_property haive.games.monopoly.standalone_demo.print_recent_events haive.games.monopoly.standalone_demo.roll_dice haive.games.monopoly.standalone_demo.run_demo Module Contents --------------- .. py:class:: PropertyColor Bases: :py:obj:`str`, :py:obj:`enum.Enum` str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'. Initialize self. See help(type(self)) for accurate signature. .. py:class:: PropertyType Bases: :py:obj:`str`, :py:obj:`enum.Enum` str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'. Initialize self. See help(type(self)) for accurate signature. .. py:function:: calculate_rent(property_obj, state, dice_roll = None) Calculate rent for a property. .. py:function:: create_board() Create the initial board with all properties. .. py:function:: create_players(player_names) Create initial players. .. py:function:: get_property_at_position(position) Get property information at a board position. .. py:function:: handle_property_landing(state, position) Handle a player landing on a property. .. py:function:: move_player(player, dice_roll) Move a player based on dice roll. .. py:function:: print_divider() Print a divider line. .. py:function:: print_player_status(state) Print current status of all players. .. py:function:: print_property(property_obj) Print property details. .. py:function:: print_recent_events(events, count = 5) Print recent game events. .. py:function:: roll_dice() Roll two dice. .. py:function:: run_demo(turns = 10) Run a simple Monopoly game demo.