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

Method is_empty

rl/tic_tac_toe.py:144–145  ·  view source on GitHub ↗
(self, i, j)

Source from the content-addressed store, hash-verified

142 self.num_states = 3**(LENGTH*LENGTH)
143
144 def is_empty(self, i, j):
145 return self.board[i,j] == 0
146
147 def reward(self, sym):
148 # no reward until game is over

Callers 2

take_actionMethod · 0.80
take_actionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected