Mar-20-2019, 06:56 AM
(This post was last modified: Mar-20-2019, 06:56 AM by bradystroud.)
Update: Program will now recognise words from acceptable_words and won't allow non-words but does allow single letters
e.g. hand - acned
'a' = acceptable - shouldn't be acceptable
'acned' = non acceptable
'dance' = acceptable
The issue was that acceptable_words was lowercase and user_word was upper.
Also, the scoring system is broken, The sum of the score of the remaining letters from hand should be subtracted from the users total score
would love some advice on how to improve and fix this code.
Thanks everyone.
e.g. hand - acned
'a' = acceptable - shouldn't be acceptable
'acned' = non acceptable
'dance' = acceptable
The issue was that acceptable_words was lowercase and user_word was upper.
Also, the scoring system is broken, The sum of the score of the remaining letters from hand should be subtracted from the users total score
would love some advice on how to improve and fix this code.
Thanks everyone.