-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
import numpy as np
def create_board(n):
board = np.zeros((n, n), dtype=str)
board[1::2, ::2] = 'x'
board[::2, 1::2] = 'x'
return board
def print_board(n):
board = create_board(n):
for i in range(n):
for j in range(n):
print(board[i][j], en
print()
n = 6
print_board(n)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels