Szachy

Pełne szachy na planszy 8×8: roszada, bicie w przelocie, promocja, szach i mat. Generowanie ruchów sprawdzone względem standardowych wyników perft.

Stół gry Szachy

2 players

Full chess: castling, en passant, promotion, check, checkmate and stalemate, the fifty-move rule, threefold repetition and insufficient material. Move generation lives in `functions` and uses the board functions (ray, leap, neighbours); the perft counts match the known values.

Draws by repetition and by the fifty-move rule happen automatically (no claim needed). For repetition, the en passant chance counts whenever an enemy pawn stands next to the pawn that just moved two squares (not whether that capture is also legal). No clock, no draw offers, no resigning.

Cel i koniec gry

  • Wygrana the side to move has no move and is in check
  • Remis the side to move has no move and is not in check
  • Remis nobody can checkmate any more
  • Remis the same position for the third time
  • Remis fifty moves by each side without a capture or pawn move

Jak przebiega gra

Śledź tor od góry do dołu. ↻ powtarza, boczny tor to rozgałęzienie; pod każdym krokiem: co tam decydujesz. Dotknij kroku, by zobaczyć, co tam decydujesz.

start↻ Matchstops through the end conditionsThe side to move makesa movekoniec gry
Wszystkie kroki słowami
  1. Match stops through the end conditions
    1. The side to move makes a move

      Dozwolone, jeśli there is a legal move.

      • Wybierz legal moves

Pod maską

Te zasady są czytane prosto z modelu gry: tych samych danych, z którymi gra silnik. Dokładne wyrażenia, schemat zasad i źródło modelu:

Schemat zasad · Model (YAML) · Edytuj kopię