mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 20:34:32 -08:00
Fix qubit.py
Changed the following lines: 284: typo of function call. 316: typo of function call.
This commit is contained in:
@@ -281,7 +281,7 @@ class TicTacToe3D:
|
||||
|
||||
class Qubit:
|
||||
def move_code(self, board, m) -> str:
|
||||
x, y, z = board.get3DPosition(m)
|
||||
x, y, z = board.get_3d_position(m)
|
||||
return f"{z + 1:d}{y + 1:d}{x + 1:d}"
|
||||
|
||||
def show_win(self, board, i) -> None:
|
||||
@@ -313,7 +313,7 @@ class Qubit:
|
||||
x = c.find(h[2])
|
||||
y = c.find(h[1])
|
||||
z = c.find(h[0])
|
||||
if board.move3D(x, y, z, Player.HUMAN):
|
||||
if board.move_3d(x, y, z, Player.HUMAN):
|
||||
break
|
||||
|
||||
print("That square is used. Try again.")
|
||||
|
||||
Reference in New Issue
Block a user