New course! Every coder should learn Generative AI!
Try a free lesson0
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?
2 Answers
0
I'll look into it
0
Please add the link you want help with