rhgrant10 / berserk

Python client for the lichess API
https://berserk.readthedocs.io
Other
142 stars 36 forks source link

Improve board functionality #20

Open Cqsi opened 3 years ago

Cqsi commented 3 years ago

I added two methods to the Board class to make it possible to accept and declines challenges even if you aren't a bot. I found this useful because this makes it possible to test whatever you want to create with the Board class against yourself (through creating a challenge against your program). These methods are the exact same ones as those in the Bot class. It should work fine without changing anything.

codecov-io commented 3 years ago

Codecov Report

Merging #20 (ecfbb42) into master (1b000a4) will decrease coverage by 0.32%. The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
- Coverage   70.04%   69.71%   -0.33%     
==========================================
  Files           8        8              
  Lines         671      677       +6     
==========================================
+ Hits          470      472       +2     
- Misses        201      205       +4     
Impacted Files Coverage Δ
berserk/clients.py 33.69% <33.33%> (-0.01%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1b000a4...ecfbb42. Read the comment docs.