HuskyDoge commited on
Commit
aae2a37
1 Parent(s): 7fefc87
Files changed (1) hide show
  1. pages/Player_VS_AI.py +1 -1
pages/Player_VS_AI.py CHANGED
@@ -136,7 +136,7 @@ def gomoku():
136
  """
137
  session_state.ROOM = deepcopy(session_state.ROOM)
138
  session_state.ROOM.BOARD = Board(width=_BOARD_SIZE, height=_BOARD_SIZE, n_in_row=5)
139
- session_state.ROOM.PLAYER = session_state.ROOM.PLAYER % 2 + 1
140
  session_state.ROOM.TURN = session_state.ROOM.PLAYER
141
  session_state.ROOM.WINNER = _BLANK # 0
142
  session_state.ROOM.COORDINATE_1D = [_BOARD_SIZE_1D + 1]
 
136
  """
137
  session_state.ROOM = deepcopy(session_state.ROOM)
138
  session_state.ROOM.BOARD = Board(width=_BOARD_SIZE, height=_BOARD_SIZE, n_in_row=5)
139
+ session_state.ROOM.PLAYER = session_state.ROOM.PLAYER
140
  session_state.ROOM.TURN = session_state.ROOM.PLAYER
141
  session_state.ROOM.WINNER = _BLANK # 0
142
  session_state.ROOM.COORDINATE_1D = [_BOARD_SIZE_1D + 1]