darkchess
dark chess - incomplete information chess
Dark chess is a python package which has all the functionality of the game chess, with also a dark mode, where the player can only view the tiles of the board they are currently on or can move to.
This is an early version of the package. There are still bugs which are being worked on.
To install:
pip3 install darkchess
run.py
from darkchess.src.board import Board
from darkchess.src.gamengine import GameEngine
from darkchess.src.darkboard import DarkBoard
dark_mode = False
ans = ''
while 'y' not in ans and 'n' not in ans:
ans = input("Do you want to play in dark mode? (y/n): ")
if 'y' in ans:
dark_mode = True
if dark_mode:
board = DarkBoard()
else:
board = Board()
game = GameEngine(board)
while True:
# game.Board.view_board_debug()
game.Board.view_board()
# if dark_mode:
# game.Board.view_board_true_sight()
game.choose_move()
To run tests:
pytest --pyargs darkchess
Metadata
Release files for darkchess 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| darkchess-0.0.1.tar.gz | 11.0 kB | Without provenance | Details for darkchess-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| darkchess-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for darkchess-0.0.1-py3-none-any.whl |
Total release size: 36.6 kB
Release files / darkchess-0.0.1.tar.gz
| Download URL | darkchess-0.0.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
120075477ac0bb9e7330b6711b6fdea46b135b76859a2f78458db396c3d5fe3b
|
|
BLAKE2b-256 checksum How to use checksums |
d0fe252719f822fe7aa242681a0d9883f2d0733128662b2bf5c47aa72db26f7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1
|
Release files / darkchess-0.0.1-py3-none-any.whl
| Download URL | darkchess-0.0.1-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1426de1f444de6d61d2b53d1330cc879455c2890496abd93fe78baf55b179cb8
|
|
BLAKE2b-256 checksum How to use checksums |
c1ca83026030d9e084d38e48c8661df2114237efddd678dc625f804dc9486c79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1
|
Security for darkchess 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.