MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / set_state

Method set_state

rl/grid_world.py:27–29  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

25 self.actions = actions
26
27 def set_state(self, s):
28 self.i = s[0]
29 self.j = s[1]
30
31 def current_state(self):
32 return (self.i, self.j)

Callers 2

play_gameFunction · 0.45
play_gameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected