nus-cs2113-AY2122S1 / pe-dev-response

0 stars 0 forks source link

In the Hangman portion of the game, it required me to enter only alphabets but I was able to type an alphanumerical as the input. #940

Open nus-se-bot opened 3 years ago

nus-se-bot commented 3 years ago

image.png

When playing the hangman game, I was able to type 'a1' as an accepted input by the program even though the previous erroneous inputs I tried required me to type only alphabets.

There is a lack of sanitisation for the hangman input, which went against the pre-defined rules of only being able to specify alphabets, which will waste the user's remaining number of chances to guess the letter.


[original: nus-cs2113-AY2122S1/pe-interim#982] [original labels: severity.Medium type.FunctionalityBug]

oneScotch commented 3 years ago

Team's Response

Hi, thank you for your advice. However, only the first letter will be taken. It is highlighted in UG (graph1) as well as prompt information for the game(graph1). pe-2.png pe-1.png

Duplicate status (if any):

Duplicate of #2474