opendilab / GoBigger

[ICLR 2023] Come & try Decision-Intelligence version of "Agar"! Gobigger could also help you with multi-agent decision intelligence study.
https://gobigger.readthedocs.io/en/latest/
Apache License 2.0
457 stars 34 forks source link

bug fix #31

Closed mingzhang96 closed 2 years ago

mingzhang96 commented 2 years ago
  1. In gobigger/balls/clone_ball.py, self.radius + ball.radius may smaller than d.
  2. In gobigger/players/human_player.py, self.get_clone_num() may equal 0.
codecov[bot] commented 2 years ago

Codecov Report

Merging #31 (e898c6c) into main (ba48355) will increase coverage by 0.16%. The diff coverage is 75.00%.

@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   87.36%   87.52%   +0.16%     
==========================================
  Files          63       63              
  Lines        3949     3952       +3     
==========================================
+ Hits         3450     3459       +9     
+ Misses        499      493       -6     
Flag Coverage Δ
unittests 87.52% <75.00%> (+0.16%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gobigger/players/human_player.py 90.90% <66.66%> (+0.12%) :arrow_up:
gobigger/balls/clone_ball.py 98.11% <80.00%> (-0.47%) :arrow_down:
gobigger/agents/bot_agent.py 79.53% <0.00%> (-0.59%) :arrow_down:
gobigger/hyper/actions.py 54.03% <0.00%> (+0.40%) :arrow_up:
gobigger/server/server.py 68.72% <0.00%> (+1.37%) :arrow_up:
gobigger/managers/thorns_manager.py 88.23% <0.00%> (+4.41%) :arrow_up:

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 ba48355...e898c6c. Read the comment docs.