DOBRO / binbo

Chess representation written in Erlang using Bitboards, ready for use on game servers
Apache License 2.0
123 stars 12 forks source link

Fix application of the fifty-move rule #10

Closed nextchessmove closed 2 years ago

nextchessmove commented 2 years ago

Here's my first stab at it.

I wasn't sure the best way to exercise is_rule50/1, so I ended up testing it via. :binbo.move/2 in the same way the existing tests test for stalemate.

Let me know if I'm way off, or if there's anything at all you would have done differently!

DOBRO commented 2 years ago

Good stab! PR accepted, thanks!