AttackingOrDefending / pydraughts

A draughts (checkers) library for Python with move generation, PDN reading and writing, engine communication and balloted openings
MIT License
13 stars 5 forks source link

Pydraughts 0.6.0 #27

Closed AttackingOrDefending closed 1 year ago

AttackingOrDefending commented 1 year ago

Add a new Board and Move that doesn't have any specific rules (e.g. white always starts as in Game), so it is easier to use. For example:

from draughts import Board, Move
board = Board('english')
move = Move(board, pdn_move='9-13')
board.push(move)

closes #26

codecov[bot] commented 1 year ago

Codecov Report

Merging #27 (484d323) into main (224fd19) will increase coverage by 0.10%. The diff coverage is 99.09%.

@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   97.63%   97.74%   +0.10%     
==========================================
  Files          19       20       +1     
  Lines        2793     3016     +223     
==========================================
+ Hits         2727     2948     +221     
- Misses         66       68       +2     
Impacted Files Coverage Δ
draughts/core/move.py 99.12% <71.42%> (-0.88%) :arrow_down:
draughts/engines/checkerboard.py 91.37% <92.30%> (-0.44%) :arrow_down:
draughts/PDN.py 100.00% <100.00%> (ø)
draughts/__init__.py 100.00% <100.00%> (ø)
draughts/convert.py 100.00% <100.00%> (ø)
draughts/core/game.py 100.00% <100.00%> (ø)
draughts/core/variant.py 100.00% <100.00%> (ø)
draughts/engine.py 100.00% <100.00%> (ø)
draughts/engines/checkerboard_extra/engine_64.py 97.77% <100.00%> (-0.08%) :arrow_down:
...aughts/engines/checkerboard_extra/engine_client.py 100.00% <100.00%> (ø)
... and 6 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more