fac-15 / hangman

to fill in
0 stars 1 forks source link

Bug: When pressing "See Length" button it told me the answer #5

Open helenzhou6 opened 5 years ago

helenzhou6 commented 5 years ago
screenshot 2019-02-01 at 11 21 18
helenzhou6 commented 5 years ago

This also happens when I pressed Start - perhaps try hiding and showing certain buttons at certain points (e.g. Only after pressing Start do the other buttons appear) to minimise the bugs :)

helenzhou6 commented 5 years ago

Looks this line needs to be hidden depending on whether the game has started or not: https://github.com/fac-15/hangman/blob/cfb092c5140917637031a48952d3f61736073a3d/form.js#L98

So there may need to be something in the state to indicate whether the game has started or not

jcharnley commented 5 years ago

it wont display, this was just to show during the development. We need to incorporate generator random name & fill array at the same time with the same click