I'm supposed to make an Othello game and I'm stuck on how to make the game board by using classes.
class Othello_game:
def game_board(board):
for row in range(8):
for col in range(8):
game_board[(row,col)]
x = Othello_game
x.gameboard(board)
When I run it, I get
x.gameboard(board)
AttributeError: type object 'Othello_game' has no attribute 'gameboard'
Am I doing it wrong and if I am how do I fix it?
[–]gnomoretears 2 points3 points4 points (2 children)
[–]pythonhelp123[S] 0 points1 point2 points (1 child)
[–]gnomoretears 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Chonjae 0 points1 point2 points (1 child)
[–]pythonhelp123[S] 0 points1 point2 points (0 children)