Skip to content

[015] Solution GM3AH#89

Open
Ilia Alenabi (iliall) wants to merge 1 commit into
mainfrom
task-015/sol-GM3AH
Open

[015] Solution GM3AH#89
Ilia Alenabi (iliall) wants to merge 1 commit into
mainfrom
task-015/sol-GM3AH

Conversation

@iliall

Copy link
Copy Markdown
Collaborator

Agent-Generated Summary

Implemented a Monopoly-style board game engine as a Python FastAPI backend service. The service uses in-memory state for a single game at a time and exposes HTTP endpoints for game creation, dice rolling, property buying/passing, and state retrieval. Board layout, property data, and dice sequences are loaded from environment variables BOARD_DATA, PROPERTIES_DATA, and DICE_MOVES respectively. The engine supports 2-4 players with unique names, starting with 500 cash on GO. Turn flow includes skip-turn flag handling for jail, dice consumption with cycling, clockwise movement, and GO payout when passing or landing. Property rules handle buying, rent payments, and bankruptcy that eliminates players and returns properties to the unowned pool. Game ends when one active player remains. All endpoints were verified with comprehensive tests covering normal gameplay, bankruptcy, jail mechanics, dice cycling, and game over scenarios.


Completion time: ~1036 seconds


This pull request is solution GM3AH for issue #15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant