Hello! Thanks for code!
I have noticed one moment there:
You have constant ROWS = 3, and it's value can be changed.
And at the same time you create game array:
Software Developer. Data Science Enthusiastic Currently Pursing masters in Data science from IIIT-Banglore. 4 yrs of experience in Automation and in python. Hardworking guy who believes in his team.
Hello! Thanks for code!
I have noticed one moment there:
You have constant ROWS = 3, and it's value can be changed.
And at the same time you create game array:
game_array = [[None, None, None], [None, None, None], [None, None, None]]
that means you have 3x3 field.
I think, it's better to replace this line with:
game_array = [[None] * ROWS for _ in range(ROWS)]
So it will work for every field size.
Yeah, For generic purpose its better to use your mentioned line. Thanks.