Python Forum
Word based Game of 21
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Word based Game of 21
#3
Players get lazy and don't want to type in yes, sometimes they only want y or a Y so I try to offer several choices.

    #if choice in ('yes', 'Yes', 'YES', 'y', 'Y'):    #if choice of user is included inside the ()
    if choice == 'yes' or choice == 'Y' or choice == 'y':
You would modify your while statement for this.
I comment one of my if statements out depending on which one I want to use. also be sure that all your functions have parentheses() where needed.
Reply


Messages In This Thread
Word based Game of 21 - by DatNerdKid - Aug-22-2018, 04:03 PM
RE: Word based Game of 21 - by ichabod801 - Aug-22-2018, 04:21 PM
RE: Word based Game of 21 - by DuaneJack - Aug-24-2018, 03:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need some help creating a word game wthiierry 4 2,573 Nov-01-2022, 12:29 PM
Last Post: perfringo
  Scramble word game Zatoichi 9 8,588 Sep-20-2021, 03:47 PM
Last Post: jefsummers
  sys.stdin to do a word count based on user entry Kaltex 3 3,782 Jul-19-2020, 01:54 PM
Last Post: deanhystad
  Random Math Text Based Game captainflint 2 4,556 Aug-05-2018, 05:40 PM
Last Post: ahsankhan
  scrabble word game atux_null 4 8,878 Nov-10-2017, 10:00 AM
Last Post: atux_null

Forum Jump:

User Panel Messages

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