Minefield Game for Python

in #python6 years ago

import random
w, h=10,10
Matrix=[[0 for x in range (w)] for y in range (h)]
for i in range (10):
i=random.randint(0,9)
j=random.randint(0,9)
Matrix[i][j]=1
deger=False
toplam=0
while deger==False:
satir=int(input("satır:"))
sutun=int(input("sutun:"))
if Matrix[satir][sutun]==0:
toplam=toplam+1
print (toplam)
else:
print ("BOOOM! You are Dead!")
deger=True
print (toplam)