Guessing game | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Guessing game

Iā€™m trying to do a guessing game in {c} but can not figure out how to randomly have 3 chests with 3 values of 500,300,0 chips in them. And if chest 1 is opened and has 300 chips in eliminate that chest so there is 2 left with 500 and 0. And if they choose the chest with 0 they lose all their chips and retry. Iā€™m not good with the srand() and rand() and loops can someone help me out with this?

9th Sep 2019, 4:27 PM
Zachary Wright
Zachary Wright - avatar
2 Respostas
0
I'll look into it
26th Sep 2019, 2:47 PM
Felix SchĆ¼ltz
Felix SchĆ¼ltz - avatar
0
Please add the link you want help with
26th Sep 2019, 2:48 PM
Felix SchĆ¼ltz
Felix SchĆ¼ltz - avatar