Coder Social home page Coder Social logo

skvrahul / udaipurgame Goto Github PK

View Code? Open in Web Editor NEW
43.0 2.0 13.0 4.65 MB

A clone of the boardgame Jaipur built using boardgame.io + ReactJS

Home Page: https://udaipur-game.herokuapp.com/

HTML 2.50% CSS 23.70% JavaScript 70.65% SCSS 3.12% Procfile 0.03%
boardgame boardgame-io reactjs webapp online-multiplayer

udaipurgame's Introduction

Header

Udaipur

A minimalistic clone of the popular 2-player card trading board game Jaipur with Online Multiplayer support built using boardgame.io and React JS.

You can try out the game at https://udaipur-game.herokuapp.com/ (It can be a bit slow to load initially since it's currently running on a free dyno).

Jaipur on BoardGameGeek

About the Game

Jaipur is a 2 player, trading card game where you and your opponent are traders and are trying to make the most money, buying and selling resources from the market. Resources initially sell for a larger amount and start to yield lesser money as more of them get sold in the market.

However not all resources have the same availability and selling price along with Rare Resources having the added constraint of needing to be sold in a group of atleast 2 cards at a time.

In the game of Jaipur, players have to strike a balance between trying to trade rarer resources which sell for more(such as Gold, Diamond and Silver) and the more abundant resources which sell for less(Leather, Spices and Silk).

For a more comprehensive explanation of the rules, watch the game guide here:
Jaipur - Rules.

You can also find help within the Udaipur Website under Game Help The only departure from the original rules in Udaipur is the removal of the Seal of Excellence tokens to simplify and shorten the game.

Development

  • Run npm install to install the necessary packages
  • Run npm run client to run the front-end client
  • Run npm run server to run the game server

Deployment

  • Set APP_PRODUCTION=true in src/config.js
  • Run npm run start to deploy the app

Deploy to Heroku with the button below.
Deploy

TODO

  • Player move history in a sidebar (Commit 69e19588e7)
  • Display player Scoreboard while playing (Commit 2629c091f)
  • Use boardgame.io's STRIP_SECRETS to ensure the Client doesn't receive extra information about the opponent
  • Clearer way to represent players receiving token(s)

Screenshots

Home Page

Home Page

Lobby

Lobby

Game Board

Game Board

udaipurgame's People

Contributors

dependabot[bot] avatar sedmek avatar skvrahul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

udaipurgame's Issues

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.