Skip to content

Instantly share code, notes, and snippets.

View willianrocha's full-sized avatar

Willian Rocha willianrocha

  • Belém, Pará, Brazil
View GitHub Profile
import random
class square(object):
def __init__(self):
self.is_bomb = random.choice([True, False])
self.n_bomb = 0
def __str__(self):
if self.is_bomb:
return 'x'
else: