minor fixes

This commit is contained in:
randomuser 2022-07-09 18:43:50 -05:00
parent 15aab805b9
commit 8c55d05404
2 changed files with 21 additions and 2 deletions

18
board.txt Normal file
View File

@ -0,0 +1,18 @@
123 456 789
| |
... | ... | ... a
... | ... | ... b
... | ... | ... c
| |
----------------
| |
... | ... | ... d
... | ... | ... e
... | ... | ... f
| |
----------------
| |
... | ... | ... g
... | ... | ... h
... | ... | ... i
| |

View File

@ -75,6 +75,7 @@ class Board:
for k in range(3): for k in range(3):
for l in range(3): for l in range(3):
buf.append(TwoDPos(TwoDPos.l, (i, j, k, l))) buf.append(TwoDPos(TwoDPos.l, (i, j, k, l)))
return buf
def possible(self): def possible(self):
try: try:
@ -90,7 +91,7 @@ class Board:
return buf return buf
local = move.local() local = move.local()
if self.subWin(local[0], local[1]): if self.subWin(local[2], local[3]):
return self.reachableEmpty() return self.reachableEmpty()
buf = [] buf = []