Giter VIP home page Giter VIP logo

xiangqi-book-example's Introduction

About

This repository intends to demo creation of a book featuring razor-sharp Xiangqi board setups based on LaTeX, xiangqi-setup, and (a subset of) FEN notation.

For details please see:

Build-time Requirements

  • GNU make
  • Python >=3.6
  • Inkscape
  • LaTeX

How to Build

# make
[..]
# okular book.pdf &

FEN Notation

Example FEN, the default starting position:

rheakaehr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RHEAKAEHR w

With regard to FEN notation, the syntax rules are:

  • Lowercase letters indicate pieces of the black (or blue) party (with their palace at the top of the board), uppercase letters indicate pieces of the red (or white) party (with their palace at the bottom of the board).

  • The pieces are:

    • a/A — advisor
    • c/C — cannon
    • e/E/b/B — elephant
    • h/H/n/N — horse
    • k/K — king
    • p/P — pawn
    • r/R — rook
  • Digits 1 (one) to 9 (nine) is the number of consecutive empty fields in a row.

  • A / (slash or solidus) starts a new row.

  • Suffix w or b indicates that red (or white) is to move or that black (or blue) is to move, respectively.

This is effectively the first two fields described at http://wxf.ca/xq/computer/fen.pdf plus the alternative letters used at https://www.chessdb.cn/query_en/ .

xiangqi-book-example's People

Contributors

hartwork avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

seemhuei

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.