Skip to content

baopham/3ree-monopoly-deal

Repository files navigation

3REE Monopoly Deal

CircleCI js-standard-style

A Monopoly Deal game built using the 3REE (React - Redux - Rethinkdb - Express) stack.

Initial boilerplate was based on: https://github.com/GordyD/3ree

Requirements

  • Node 6.7 and up
  • npm 3.10 and up or yarn

Quick Start

Replace npm with yarn if you are using yarn

  1. Install rethinkdb
  2. Run npm install
  3. Run rethinkdb in the root directory in a separate tab
  4. Run npm run db:setup wait and exit
  5. Run npm start

Notes

  • Currently, only the client knows about what cards the player is holding
  • Rules are loosely applied
  • If you get unexpected errors, try to clear local storage: localStorage.removeItem('redux')
  • No authentication and such, play responsibly 😊

TODOs

  • Improve log - show card images for example
  • Allow to sly deal, force deal, pay "left over cards"
  • Say no to
    • sly deal
    • forced deal
    • deal breaker
    • payment (birthday, debt collector, rent)
    • say no
  • Fix bug when paying using properties / house / hotel...
  • There should be a place for cards like house and hotel
    e.g. payer pays using a property card -> set is no longer a full set -> house and hotel cards should go to a different place
  • Allow player to indicate if cards should be treated as money
  • Collect all the card images
  • Sound notification for payment notice
  • Game history log
  • Show who played the last card
  • Action counter
  • Draw cards on PASS GO
  • End turn when action counter reaches 3
  • Winner notification
  • Modal allows background scrolling
  • Use flow types in React components
  • Allow player to move wildcard to a particular property group
  • Allow player to flip card
  • Allow player to select which set the wildcard, house, or hotel card should go to (when these cards are still in hand)
  • Player can minimize the modal
  • Handle actions that require other players' responses
    • Payment: payers get a form to select cards
    • Payment: payee should not be able to do any other actions until all the payers pay their due
    • Payment: handle when the payer does not have enough money to pay
    • Payment: rent
    • Payment: target rent
    • Debt collector
  • Deal breaker
  • Sly deal
  • Forced deal
  • Double rent
  • House
  • Hotel
  • Draw 5 cards when hand is empty
  • Fix HMR errors
  • Improve notification... possibly throttled?
  • Hydrate store from server

License

MIT