How m-yazidxx/monopoly-takeover works
This browser-based Monopoly game supports two to eight human or AI players. Players configure a game, take turns rolling dice and resolving board squares, then manage property through purchases, auctions, building, mortgages, trades, and debt; card effects and jail rules also alter play. The classic and New York City editions provide distinct board data and card actions. The README also identifies an experimental AI and a takeover mechanic. Source excerpts show game logic and AI hooks, but do not expose the takeover implementation or every UI-to-rule call, so uncertain wiring is omitted.
Main entry points: monopoly.js Turn and auction · index.html Board interface · classicedition.js Classic board · ai.js AI test player
Components 14
Game runtime
- Players
monopoly.js - Turn and auction
monopoly.js - Movement and landing
monopoly.js - Property and debt
monopoly.js - Property trades
monopoly.js - Cards and effects
classicedition.js - Board interface
index.html - Game presentation
styles.css - Takeover variant
monopoly.js
Board editions
- Classic board
classicedition.js - New York board
newyorkcityedition.js
AI opponents
- AI test player
ai.js
Other components
- Human players
- Web browser
Connections 17
- Human players → Board interface: uses controls
- Board interface → Turn and auction: starts and acts
- Turn and auction → Players: advances turn
- Turn and auction → Movement and landing: starts turn
- Movement and landing → Property and debt: resolves payments
- Movement and landing → Cards and effects: runs card effects
- Property and debt → Turn and auction: queues auctions
- Turn and auction → Property trades: handles trade
- Property trades → Players: transfers assets
- Classic board → Cards and effects: defines card actions
- Classic board → Movement and landing: defines board data
- New York board → Movement and landing: defines board data
- AI test player → Turn and auction: turn and bid hooks
- AI test player → Property trades: proposes trades
- Web browser → Board interface: renders
- Board interface → Game presentation: styled by
- Movement and landing → Takeover variant: processes takeover