MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / place

Method place

tools/python-3.11.9-amd64/Tools/demo/queens.py:41–45  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

39 return not self.row[y] and not self.up[x-y] and not self.down[x+y]
40
41 def place(self, x, y):
42 self.y[x] = y
43 self.row[y] = 1
44 self.up[x-y] = 1
45 self.down[x+y] = 1
46
47 def remove(self, x, y):
48 self.y[x] = None

Callers 1

solveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected