Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 712 Bytes

record_player.md

File metadata and controls

27 lines (19 loc) · 712 Bytes

Record Player Manual

Record Player可以用来复现之前的游戏

一、保存游戏记忆

from rmaics import rmaics
game = rmaics(agent_num=4, render=True)
game.reset()
# only when render = True
game.play()

game.save_record('./records/record0.npy')

注意:用鼠标点击游戏窗口的关闭图标,Windows下为右上角的红色×,能够正常结束游戏,且内存里的游戏记忆不会被清空

二、复现游戏

from kernal import record_player
player = record_player()
player.play('./records/record0.npy')

可使用键控制播放进度,用space暂停,具体请参见operation.md