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)

Coin Marketplace

STEEM 0.26
TRX 0.20
JST 0.038
BTC 92922.43
ETH 3362.42
USDT 1.00
SBD 3.72