Giter VIP home page Giter VIP logo

chess_bead's Introduction

License Docs Contact Site

Chess Bead Game ♖♝♘♟️♕

Description

Package for the both chess and Chinese poetry game. The rules of the game involve chess moves from games in pgn format. The board for the game is a Chinese poem of the Tang era, in which the line is equal to 7 characters (the last, 8th vertical is most often punctuation marks). When a piece makes a move, the characters on the board change places. The character on which the piece was is moved to the place of the character to which the move was made.

How the game works.

You can get the result texts and visualize it with the package.

You can use custom game in PGN format.

Inspired by Das Glasperlenspiel by Hermann Hesse.

Quick start

import chess_bead as cb

g = cb.Game()                       # use random chess game from the example PGN
                                    # file included in the package
verses = g.start_game()             # get all the permutations in the poem
v = cb.Viz(verses, g.author, g.title)    # prepare visualization
v.gif()                             # make the GIF animation with the name
                                    #'game.gif' in the working directory
del v                               # clean up the tmp dir

Installation

The tool could be installed with pip

pip3 install chess_bead

Examples and Docs

You can explore the brief examples that could give you a clue. For the deep sinking read the documentation.

External resources

chess_bead's People

Contributors

nevmenandr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.