Open jmartinez95 opened 7 years ago
Yesssssssssssss. This is great. I can't say enough good things about your code. It's so nicely formatted, everything has its own function, and your random integer helper is flexible and really makes some cool things possible in your game.
There are only two things I would add:
Such a nice job on this though, well done! Let me know when you've made changes.
@stuartpearman Thank you! Just fixed the two bugs you mentioned.
Cool, looks great! :shipit:
@stuartpearman Can you take a look at this? It's hosted here and meets the following criteria:
prompt
andconfirm
functions (each at least once) to collect choices from the user (the entire story will take place in dialog boxes, so yourbody
element could actually be empty, apart from thescript
element to include your JavaScript)if
,else if
, andelse
to branch the story, based on user choicesMath.random()
&&
or||
) at least once, where it makes sensenull
/undefined
where appropriate