Wanna make a program were people get infected by a disease [Answered]
if one person is infected i want him to infect someone else and that else to infect another one, and so on till all people get infected, ive made a list 20 people in it and after 5 hours(5 loops) the person gets immune and cant get infected but the infection from the other people goes on
25 Replies
dont know how to make one person infect the others
and the 2 infected, infect 2 more
and then 4 infect 4 more
and so on
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
can i send my code somewhere
pastemyst | (untitled)
a powerful website for storing and sharing text and code snippets. completely free and open source.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
do i have to sign up for it ?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
pastemyst | (untitled)
a powerful website for storing and sharing text and code snippets. completely free and open source.
and that is my class
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
exactly
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yes
and one person starts with being infected
and in the end i wanna see how many hours it takes till everyone gets infected
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
no one person can infect another one every hour
i wanna see how long it takes to make everyone immune/how long it takes till everyone gets infected
or just how long it takes till everyone gets immune
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
like one loop = hour
by button press it hour++
not irl hours
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
everytime it loops the hour is added by 1, dont want real time involved in this
just want to know how 1 guy can infect another one
and then become immune and not get infected or cant infect
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
exactly but one person can only infect one
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
okay but how do i do so the next person in line gets infected
so the first whom is infected is Johan
and i want the next to be Frank
and the next after that is Ahmed and Mohammed
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
✅ This post has been marked as answered!