Giter VIP home page Giter VIP logo

sedchess's Introduction

Шахматы, написанные на языке утилиты sed / Chess implemented in sed utility

English guide is below

Запуск

sed -f chess.sed

Инструкция

Для начала нажите Enter. Чтобы выйти, нажмите q, затем Enter.

Чтобы сделать ход, введите его через пробел, затем Enter, например: e2 e4. Вы ходите белыми.

Реализовано:

  1. позиционная оценка на один ход и оценка фигур
  2. обнаружение шаха и мата
  3. прошедшая пешка преобразуется в ферзя

Не реализовано:

  1. рокировка (введена в правила в XIV-XV вв.)
  2. взятие на проходе (введено в XV в)
  3. обнаружение пата
  4. контроль за правильностью хода человека

Решения проблем

  • sed: file chess.sed line 312: strings for `y' command are different lengths

Убедитесь, что ваша консоль использует локаль UTF-8 (например, ru_RU.UTF-8)

English

Launch

sed -f chess.sed

How to play

Press Enter to start. Press q and Enter to quit.

To make a turn write it down separated by a space, then press Enter. For example: e2 e4. You play white side.

Implemented

  1. Position evaluation for one turn and pieces evaluation.
  2. Detection of check and checkmate.
  3. A pawn that reaches the opposite side promotes to a queen.

Not implemented

  1. Castling (introduced in 14-15th century rules)
  2. En passant (introduced in 15th century rules)
  3. Detection of stalemate
  4. Controlling correctness of human moves

Troubleshooting

-- Евгений Степанищев / Evgeny Stepanischev

sedchess's People

Contributors

bolknote avatar kloun avatar sorrymak avatar vladmos avatar ziman avatar

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.