Making a checkers board in python : <p>I am trying to make a 2D array that is 8x8 for a checkers game in python. How would I go about doing this?
Here is my current code:</p>

<pre><code>class Board():    
    board = [[]]

    def __init__(self,width,height):
        self.width = width
        self.height = height

    def __repr__(self):
        print(self.board)

    def setup(self):
        for y in range(self.height):
            for x in range(self.width):
                self.board[y].append(0)

board = Board(8,8)
board.setup()
print(board.board)
</code></pre>
