MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / game_over

Method game_over

rl/grid_world.py:87–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85 assert(self.current_state() in self.all_states())
86
87 def game_over(self):
88 # returns true if game is over, else false
89 # true if we are in a state where no actions are possible
90 return (self.i, self.j) not in self.actions
91
92 def all_states(self):
93 # possibly buggy but simple way to get all states

Callers 12

stepMethod · 0.45
stepMethod · 0.45
play_gameFunction · 0.45
play_gameFunction · 0.45
q_learning.pyFile · 0.45
td0_prediction.pyFile · 0.45
gather_samplesFunction · 0.45
gather_samplesFunction · 0.45
approx_control.pyFile · 0.45
sarsa.pyFile · 0.45
play_gameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected