04_angelcin_zapis
This commit is contained in:
@@ -8,10 +8,10 @@ def dolzina_ovir(vrstica):
|
||||
def stevilo_ovir(vrstica):
|
||||
count = 0
|
||||
ovira = False
|
||||
|
||||
for char in vrstica:
|
||||
if char == "#":
|
||||
if not ovira:
|
||||
ovira = True
|
||||
ovira = True
|
||||
elif ovira:
|
||||
count += 1
|
||||
ovira = False
|
||||
@@ -55,7 +55,7 @@ def pretvori_zemljevid(vrstice):
|
||||
for ovira in pretvori_vrstico(vrstica):
|
||||
ovire.append((*ovira, y))
|
||||
return ovire
|
||||
|
||||
|
||||
def izboljsave(prej, potem):
|
||||
nove_ovire = []
|
||||
star_zemljevid = pretvori_zemljevid(prej)
|
||||
|
||||
Reference in New Issue
Block a user