Conversation
…does not work and it has an incorrect amount of underscores.
|
Code is good, everything seems to work, however with tests FeatureOne has 100% method coverage, but only 52% line coverage. There are certain cases within your handle method which are never checked (ranInt = 1, 2, 3, 4 or invalid (default). I would suggest moving the switch cases into their own function which takes an int as an input, so you can keep the randomness, but also test it easily within a loop. |
opie10
left a comment
There was a problem hiding this comment.
I think I put this in the wrong place so:
Code is good, everything seems to work, however with tests FeatureOne has 100% method coverage, but only 52% line coverage. There are certain cases within your handle method which are never checked (ranInt = 1, 2, 3, 4 or invalid (default). I would suggest moving the switch cases into their own function which takes an int as an input, so you can keep the randomness, but also test it easily within a loop.
ChillGame is basically just hangman. Firstly, say !chillGame in the chat to start it, and then guess letters by typing !chillGame e, or any other letter. The bot will have a display of a dash representing every letter in the randomly selected word, and the dashed letter will be revealed if the user guesses the letter correctly. If the user guesses every letter correctly, or if they guess the word. It will tell them they won and the game will reset.