Code Monkey home page Code Monkey logo

3ree-monopoly-deal's Introduction

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

3ree-monopoly-deal's People

Contributors

baopham avatar gordyd avatar loremipson avatar bartekus avatar staticbuzz avatar comigor avatar snobear avatar vwong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.