<s> class Game ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , width , height , actions = { } ) : <EOL> self . actions = actions <EOL> self . score = <NUM_LIT:0.0> <EOL> self . lives = <NUM_LIT:0> <EOL> self . screen = None <EOL> self . clock = None <EOL> self . height = height <EOL> self . width = width <EOL> self . screen_dim = ( width , height ) <EOL> self . allowed_fps = None <EOL> self . rng = None <EOL> self . rewards = { <EOL> "<STR_LIT>" : <NUM_LIT:1.0> , <EOL> "<STR_LIT>" : - <NUM_LIT:1.0> , <EOL> "<STR_LIT>" : <NUM_LIT:0.0> , <EOL> "<STR_LIT>" : - <NUM_LIT> , <EOL> "<STR_LIT>" : <NUM_LIT> <EOL> } <EOL> def adjustRewards ( self , rewards ) : <EOL> """<STR_LIT>""" <EOL> for key in rewards . keys ( ) : <EOL> if key in self . rewards : <EOL> self . rewards [ key ] = rewards [ key ] <EOL> def setRNG ( self , rng ) : <EOL> """<STR_LIT>""" <EOL> if self . rng is None : <EOL> self . rng = rng <EOL> def getGameState ( self ) : <EOL> """<STR_LIT>""" <EOL> return None <EOL> def getScreenDims ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . screen_dim <EOL> def getActions ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . actions . values ( ) <EOL> def init ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> def reset ( self ) : <EOL> """<STR_LIT>""" <EOL> self . init ( ) <EOL> def getScore ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> def game_over ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) <EOL> def step ( self , dt ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( "<STR_LIT>" ) </s>
