GithubHelp home page GithubHelp logo

dependingonmood / banqi Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 2.0 8.77 MB

Banqi (半棋), also known as Dark Chess (暗棋) or Blind Chess (盲棋), a Chinese board game.

JavaScript 92.00% CSS 2.91% HTML 5.08%

banqi's Introduction

Banqi

Banqi (Chinese: 半棋; pinyin: bànqí) or Half Chess, also known as Dark Chess (暗棋) or Blind Chess (盲棋), is a two-player Chinese board game played on a 4x8 grid, or half of the xiangqi (Chinese Chess) board. Most games last between ten and twenty minutes, but advanced games can go on for an hour or more. Banqi is a social game, usually played for fun rather than serious competition.

Rules can be find in: http://en.wikipedia.org/wiki/Banqi

Using Taiwanese version Rule.

Red has the 1st move.

The ranking goes as follows: general, advisor, elephant, chariot, horse, soldier.

This ranking is based on the initial board positions of the corresponding pieces in xiangqi, though the horse and chariot are inexplicably swapped.

Only pieces of equal or lower rank may be captured, with one exception. The one exception concerns generals and soldiers: the general cannot capture soldiers, and soldiers can capture the general.

Except for the cannon, pieces capture with the same motion as for movement: one square up, down, left, or right.

The cannon is not included in the ranking because it is exceptional: it captures in an unusual way, it can capture a piece of any rank, and yet is vulnerable to capture by any piece except the soldier.

A cannon captures as in xiangqi: it moves any distance along a single row or column of the board, jumping over exactly one intermediate piece (called a screen). Any other squares between the cannon and its target must be empty. The color of the screening piece does not matter; it may be friend or foe, or even face down. While a cannon may capture any piece, it must jump a screen to do so. Since a cannon must jump to capture, it cannot capture a piece in an adjacent square.

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.