Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using if statements
#4
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.
Reply


Messages In This Thread
Using if statements - by bradystroud - Mar-19-2019, 09:13 AM
RE: Using if statements - by Larz60+ - Mar-19-2019, 03:23 PM
RE: Using if statements - by ichabod801 - Mar-19-2019, 03:40 PM
RE: Using if statements - by bradystroud - Mar-20-2019, 06:56 AM
RE: Using if statements - by ichabod801 - Mar-20-2019, 01:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020