4 ms·
If you have a ton of embedded if/else statements you're doing it wrong. Only one if/else is required. Thanks for giving me a course about game design and askin
by nddrylliog 13y ago
If you have a ton of embedded if/else statements you're doing it wrong. Only one if/else is required.
Thanks for giving me a course about game design and asking questions obviously not answered in Chapter 1. Where can I send you money? <3.
- Zimahl 13y agoThanks for giving me a course about game design and asking questions obviously not answered in Chapter 1. Where can I send you money? <3. Did you not post this expecting constructive feedback? Snark aside, chapter 1 of what? You haven't made it clear what this really is. Is this python? Do you want to use a game to teach the language or is this just a game and the language is irrelevant? On the question I was having trouble with I was over thinking the isTrue method. It just wasn't all that clear to me until I did some pseudo debugging with it.
- tempestn 13y agoThe language is irrelevant. It's coffeescript, but the whole thing is 'beatable' with an understanding of logic by following its instructions. If you've never programmed before at all, some parts would indeed be tricky, including the part you mentioned. Still, if you understand how to solve the logic puzzle, you could do it using a temporary variable as previously demonstrated, rather than the more natural (to programmers) nested calls.
- nddrylliog 13y agoThat's exactly the point of the game :) Thanks for explaining it.