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

add reload game for server #17

Closed mingzhang96 closed 2 years ago

mingzhang96 commented 2 years ago

Now you can reload a game at any frame number!

Try to use this feature in your config for server:

save_bin=False, # Whether to save the information of the game
load_bin=False, # Whether to load the information of a game at the start of the game
load_bin_path='', # The file path to load the information of a game at the start of the game
load_bin_frame_num ='all', # can be int (representing the action frame number to load), or 'all' (representing loading all frames)
codecov[bot] commented 2 years ago

Codecov Report

Merging #17 (3063168) into main (4239c6c) will decrease coverage by 0.17%. The diff coverage is 62.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
- Coverage   94.17%   93.99%   -0.18%     
==========================================
  Files          55       55              
  Lines        3398     3430      +32     
==========================================
+ Hits         3200     3224      +24     
- Misses        198      206       +8     
Flag Coverage Δ
unittests 93.99% <62.85%> (-0.18%) :arrow_down:

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

Impacted Files Coverage Δ
gobigger/server/server_default_config.py 100.00% <ø> (ø)
gobigger/server/server.py 72.34% <62.85%> (-0.07%) :arrow_down:
gobigger/players/human_player.py 90.78% <0.00%> (+0.70%) :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 4239c6c...3063168. Read the comment docs.