Jun-19-2018, 11:25 AM
Oh that's true. And now that code works but my long code still doesn't. Here it is https://pastebin.com/Z4qjGxCU. The problem with this one is that, when I call check_num() on the tiles, it works. But when I call check_mouse(), load_image() [which I've commented so you don't have to download the assets] or print_tile() they return an error such as this:
Error:Traceback (most recent call last):
File "C:\Users\sergio\Desktop\Minesweeper\minesweeper.py", line 96, in <module>
grid[i][j].check_mouse()
AttributeError: 'Tile' object has no attribute 'check_mouse'
I've checked the code but I can't find anything that's wrong. Any ideas?