incomplete information chess
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
darkchess-0.0.1.tar.gz
(11.0 kB
view hashes)
Built Distribution
darkchess-0.0.1-py3-none-any.whl
(25.5 kB
view hashes)
Close
Hashes for darkchess-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1426de1f444de6d61d2b53d1330cc879455c2890496abd93fe78baf55b179cb8 |
|
MD5 | 86236e9cacf2ed59797813cf359de5bd |
|
BLAKE2b-256 | c1ca83026030d9e084d38e48c8661df2114237efddd678dc625f804dc9486c79 |