Skip to content

Гем по руби, позволяющий создавать свои виды шахмат и играть в обычные.

License

Notifications You must be signed in to change notification settings

EnderGolem/Extended-Chess

Repository files navigation

ExtendedChess

Desription

A gem for creating custom games like chess. With the creation of their figures, fields and rules. The gem implements checkers, chess and the Mongols setup.

Installation

Add this line to your application's Gemfile:

gem 'Extended_chess'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install Extended_chess

Usage

To interact with the examples, initialize the interface class and use the start procedure.
To create a game directly without an interface, you need to create a variable of type Mode and call the make_game procedure.
In order to move the shapes, you need to call the step procedure!(notation) and notation in the correct format, then only one move will take place.
To add new boards, move rules, figure setups and mods, use the add_board, add_movement_rule, add_piece, add_setup, add_mode procedures.

Notations

Notations in chess:
The usual move is [piece name][cell1]-[cell2], that is, re2-e3, exception pawn them e2-e3.
Short castling: 0-0.
Long castling: 0-0-0.
Checkers notation:
The usual move is [piece name][cell1]-[cell2], that is, me2-e3.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run 'test_Extended_chess.rb' to run the tests.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/EnderGolem/Extended_chess. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the ExtendedChess project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Гем по руби, позволяющий создавать свои виды шахмат и играть в обычные.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •