[015] Solution GM3AH#89
Open
Ilia Alenabi (iliall) wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
GM3AHfor issue #15.