Guessing game | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas
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