Skip to content

Instantly share code, notes, and snippets.

View timorthi's full-sized avatar
🏎️

Timothy Ng timorthi

🏎️
View GitHub Profile
@timorthi
timorthi / minesweeper.py
Last active October 14, 2018 22:31
Python implementation of Minesweeper
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