erwinhenraat / PythonExamples

Repository with simple Python examples usable with our achievement system.
1 stars 0 forks source link

Bug : Cookie Clicker game sluit niet af! #3

Open erwinhenraat opened 1 year ago

erwinhenraat commented 1 year ago

https://github.com/erwinhenraat/PythonExamples/blob/master/BuggedClicker/BuggedCookie.py

Wie kan mij helpen?

pinkflamey commented 1 year ago

De while loop op regel 5 ("while (result)") kan niet stoppen: "(result)" geeft true wanneer de string niet null is, niet wanneer de string "nee" is. Dit is op te lossen door regel 5 te veranderen naar "while(result == "ja")", zodat wanneer de result "nee" is, de result niet ja is en de while loop zal stoppen.

DutchMTC commented 1 year ago

while(result) moet while(result == ja) zijn, anders is result altijd true.

fixed by akari & miyaki

Mitchel2004 commented 1 year ago

while(result): moet while(result != "nee"): zijn

TessavanElderen commented 1 year ago

De oplossing = while(result != "nee"):