This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
class Cell: | |
''' | |
Helper class to encapsulate the state of a given cell in the Minesweeper grid. | |
''' | |
def __init__(self, row, col, revealed=False, is_bomb=False, value=0): | |
self.row = row | |
self.col = col |