Giter Site home page Giter Site logo

o-an-quan's People

Contributors

axonlmai avatar locmai avatar sieuvb avatar sieuvong-tiki avatar

Watchers

 avatar  avatar

Forkers

locmai

o-an-quan's Issues

Setup linting workflow

As a contributor, I want to have a auto-triggered workflow that run lint check for every PR.

AC:

  • Lint checking workflow for every PR to the main branch

Reference:
Danger is preferred here: https://danger.systems/

Chess board component

Develop a chess board component contains:
A rectangle which is divided into ten squares (5x2) with two semicircles at each end is drawn on the floor or the yard. The ten squares are called "rice field square" and the two semicircles are called "Mandarin squares".

Mockup:
2880px-Board_mandarinbox svg

AC:

  • Open for add-on logic later.
  • Open for add-on fields and board for (3-players, 4 players game in phase 3)

Create game

Summary

As a user, I want to go the front page of the site, click on the create game and redirect to a chess board

ACs

  • Able to click on create button
  • User got redirected after that
  • New session link created

Handle game rules

Game rules:

Ref: https://en.wikipedia.org/wiki/%C3%94_%C4%83n_quan
https://www.youtube.com/watch?v=HAmym2F5vhs

Start

Setup: 1 Big stone on each Big square, 5 Small stone fo each Small square.

Loop cycle:

  1. Check if all fields of the player on that turn that has no Small stone. Then divide 5 Small stones equally to the Small squares on their side.
  2. Player pick the square and the direction (left or right) to move.
  3. Post-move check -> Check if 1 on these 3 cases:
    3.1. If the next square is blank and the next square has stone(s), the player take all the stone and repeat the post-move check on step 3.
    3.2. If the next 2 squares are blank: End the player turn.
    3.3. If the next square has stone(s), keep moving.
  4. Check if both Big squares are blank, end the game if yes.

ACs:

  • Implement the basic rules above.

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.