from enum import IntEnum class Cells(IntEnum): BLANK = 0 BLACK_CHIP = 1 WHITE_CHIP = 2 WALL = 9 board = [ [9,9,9,9,9,9,9,9,9,9], [9,0,0,0,0,0,0,0,0,9], [9,0,0,0,0,0,0,0,0,9], [9,0,0,0,0,0,0,0,0,9], [9,0,0,0,1,2,0,0,0,9], [9,0,0,0,2,1,0,0,0,9], [9,0,0,0,0,0,0,0,0,9], [9,0,0,0,0,0,0,0,0,9], [9,0,0,0,0,0,0,0,0,9], [9,9,9,9,9,9,9,9,9,9], ] ## Display game board for y in range(0, 10): for x in range(0, 10): if board[x][y] == Cells.BLANK: print("・", end="") elif board[x][y] == Cells.BLACK_CHIP: print("●", end="") elif board[x][y] == Cells.WHITE_CHIP: print("○", end="") elif board[x][y] == Cells.WALL: print("■", end="") print()