Read Message | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Read Message

On python, I have created a code in which a randomized setup will determine what you eat, drink, where you live and if you survive. I would like it so that if you survive the night, then you would be able to move on to another day. But if you die, then you must start over. How can I do this? https://code.sololearn.com/c0gpw10636O4/#py this is a link to the code

3rd Sep 2019, 4:00 PM
Joseph Bollig
Joseph Bollig - avatar
2 ответов
+ 1
Could I just use a if else statement that is randomized?
3rd Sep 2019, 4:00 PM
Joseph Bollig
Joseph Bollig - avatar
+ 1
Try implementing a counter of some sort, some method to track in game time, it can be time based, so every few minutes equals a day or action based, where the user successfully choose 5/8 of the day correctly, but you need a way to manage, record and filter
3rd Sep 2019, 4:11 PM
Steven M
Steven M - avatar