AttackingOrDefending / pydraughts

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

Fix draw detection bug #19

Closed AttackingOrDefending closed 2 years ago

AttackingOrDefending commented 2 years ago

Use consecutive_non_capture_king_moves instead of moves_since_last_capture.

codecov-commenter commented 2 years ago

Codecov Report

Merging #19 (5971c42) into main (fd07b71) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #19   +/-   ##
=======================================
  Coverage   97.67%   97.67%           
=======================================
  Files          19       19           
  Lines        2758     2758           
=======================================
  Hits         2694     2694           
  Misses         64       64           
Impacted Files Coverage Δ
draughts/core/game.py 100.00% <100.00%> (ø)

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