BullCowGame Lesson 24 (is this okay?)

https://gist.github.com/Ryuketsukami/ec5bac62f600ecc9f8630292d455194b

would be nice if someone could give me any feedback about this, it was different than what the professor made, and it works, but wanted to know if is practical or if it has any flaws in it that I have not noticed and that would make me get used to a bad habit

Anything iin particular you’re concerned about?
Also not sure why you have while (Ask() > 0); instead of just Ask() == true or even simpler Ask()? Why > 0? Seems strange.

Didn’t have something particular in mind, but thanks for pointing out the Ask(), i couldn’t do it as Ask() == 1 so i thought that was the only way.

Why not? (10char limit)

i don’t know, tried to run the game and it didn’t work like that

might have typed it wrong tho

Privacy & Terms