Giter Site home page Giter Site logo

sc_ia41_project's Introduction

Chess Sequence Recognition Module

About the Project

This project is a module which intends to find the shortest sequence of moves from an initial chess position to a final position. In the final position, the pieces types aren't recognized, all that is known is their color.
The module finds its usage when digitalizing chess games using image recognition, as intended in the project SharlyChess. It is an alternative to using shape recognition for pieces, which can be a heavy computation with a low success rate.
This project is a UTBM student project realized as a part of the UV IA41. It also is a part of the project SharlyChess.

Getting started

This project is written in python, and requires the module chess.

pip install chess

To run it, execute the main.py file.

python main.py

As it is a proof of concept, the module uses a console based interface. It could be implemented as a command line interface for other usages.

Module description

The module takes as input 2 chess boards in FEN format, one for the initial board and one for the target. The target is then converted into a ColorBoard, which is a mapping of the squares and the piece colors of the position.
To go from the initial position to the target, the search alogrithm A* is used. A* uses nodes to build a search tree, and heuristic to determine which node to explore first. In our case the nodes are chess positions, and going from one node to its child consists in playing a chess move. The heuristic is the sum of the number of different squares and the piece difference from the node position to the target position.

sc_ia41_project's People

Watchers

 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.