Git Product home page Git Product logo

tractor's Introduction

Tractor (拖拉机)

Multiplayer online tractor game. Try it at https://util.in:8096.

Video

Features:

  • Engine implements the full ruleset and allows only valid plays
  • Supports variable number of players and variable number of decks
  • Supports find-a-friend version
  • Supports leading with a set of top cards (special "does-it-fly" plays)
  • Supports take-backs
  • Sound notifications on your turn
  • Shows the currently winning player in each trick
  • View the previous trick
  • Automatic card drawing during the draw phase
  • AI players

The engine follows the ruleset and terminology here.

Quickstart

npm install
npm run build
./gradlew run

Go to http://localhost:8080.

Development

Backend

The backend is a Java Dropwizard server. The files are in the standard Gradle Java layout, with production files in src/main/java. Assets are served from src/main/resources/assets. The in-game communications are JSON-serialized messages sent to and received from clients via websocket using the Atmosphere framework.

Run either ./gradlew eclipse or ./gradlew idea to setup the project in Eclipse or IntelliJ (respectively), and then run the entry point, TractorServer.java.

Frontend

The frontend is a single-page React app in plain Javascript. The assets live in client/assets, self-contained React components live in client/components, library code (no React) live in client/lib, and the top-level view components live in client/views.

To start the dev server, run:

npm install
npm run start

Then go to http://localhost:3000. The site will auto-refresh after making any frontend changes.

tractor's People

Contributors

kevinychen avatar countsheep avatar yi-shiuan-tung 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.