Console-Chess
My implementation of chess game which can be played through console. Run main.py or Menu.start() to start application.
Overview:
-
console_chess.base:
Containing classes Table, Player, Figure and exception classes. -
console_chess.figures:
Containing figures classes Pawn, Rook, Bishop, Knight, Queen, king and some functions for them. -
console_chess.bot:
Containing Bot, EasyBot, NormalBot, HardBot and some functions for them. -
console_chess.game:
Containing Difficulty, ChessSet, Game, PvP, PvC, CvC and Menu.
Instruction:
- The Table contains Figure objects in certain positions inside.
- Figures are a Figure subclasses, which have their unique rules by which their moves are validated.
- figures are owned by some Players, which can move their figures from one position on table to another using Player.move() method.
- Player and Figure moves must be valid from chess rules perspective, or else it will raise exception.
- Bots are subclasses of Player, which can make moves by themselves using Bot.auto_move() method.
- PvP, PvC and CvC are subclasses of a Game, which performs turn-based gameplay of chess through console. Use .play() method to start the game.
- The Menu provides interface to choose game mode and difficulty. Run Menu.start() to start a menu.
Requirements:
Release files for console-chess-imandyr 1.6.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| console_chess_imandyr-1.6.5.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| console_chess_imandyr-1.6.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.7 kB
Release files / console_chess_imandyr-1.6.5.tar.gz
| Download URL | console_chess_imandyr-1.6.5.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37d56305df3f8c0ebe7ec0ab7d93e1fb155468d107833502d6a82aa98e977064
|
|
BLAKE2b-256 checksum How to use checksums |
c5a4b9d7c9dcd8fbe55f81bb018d05b8987c97805a1d99145e7cc311abae62fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / console_chess_imandyr-1.6.5-py3-none-any.whl
| Download URL | console_chess_imandyr-1.6.5-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08dcf4e0d4a5c32efefcfc2e31caf99fba14805640f442c6f7f4baccdf1b8e5c
|
|
BLAKE2b-256 checksum How to use checksums |
85a482bfd0fc2ce460975a15a799b64e0a288695bce9065286b4e01335d49482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|