Skip to main content

A 4x4 Chess library (King + Rook vs King) with move validation and win/draw detection

Project description

Chess4x4

A simple 4x4 Chess Library written in Python.
Currently supports the classic endgame scenario White King + Rook vs Black King on a 4x4 chessboard.


✨ Features

  • 4x4 chessboard
  • Custom starting positions
  • Supports King and Rook
  • Generate all possible moves
  • Make legal moves
  • Detect win (capturing opponent King)
  • Detect draw (only two Kings left)
  • Turn-based play (White starts)

📦 Installation

pip install chess4x4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chess4x4-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chess4x4-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file chess4x4-0.1.0.tar.gz.

File metadata

  • Download URL: chess4x4-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for chess4x4-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6de435fb2b9d59538f4f669ae81ec207f231a9aeda011a408c99840bc2a9d069
MD5 7223ae1a3a4ff2219f75d6ebd38b1bf3
BLAKE2b-256 aadf44f4c54b2820203c36d31fa44873db6430310124166068c07b161952dcb7

See more details on using hashes here.

File details

Details for the file chess4x4-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chess4x4-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for chess4x4-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90bb3fb8be390367d98ae05395d68c1801e8c09b961ac3ba3744668f0847b1b7
MD5 5b20a7586d166ea722fd804d16dedac7
BLAKE2b-256 451000c50d57fa00dfa2535ef1accffd6dffd837b5fb07ea11af68b7dd5d6fe8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page