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

Add pop() function in Game #13

Closed AttackingOrDefending closed 2 years ago

AttackingOrDefending commented 2 years ago

The pop() function in Game undos the last move. Also added fen_to_variant in self.last_non_reversible_fen, so CB engines understand it.

codecov-commenter commented 2 years ago

Codecov Report

Merging #13 (5a79246) into main (e091fe4) will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
+ Coverage   93.29%   93.36%   +0.06%     
==========================================
  Files          18       18              
  Lines        2699     2727      +28     
==========================================
+ Hits         2518     2546      +28     
  Misses        181      181              
Impacted Files Coverage Δ
draughts/convert.py 100.00% <100.00%> (ø)
draughts/core/game.py 100.00% <100.00%> (ø)
draughts/engines/checkerboard.py 80.73% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more