#๐Ÿ”’ Help with a python project

10 messages ยท Page 1 of 1 (latest)

light cedarBOT
#

@floral halo

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

lunar bronze
#

You only check for user once (i believe), in the first if condition after entering the while loop. At that point, the biggest value user can get two is by rolling two sixes, resulting in 12. Thus, the bottom elif user >= 14: will never execute.

#

Perhaps it's easier instead of checking the value of user and house using many if statements to change the dice they roll, you can make the number of dice rolled 2 to be a variable that is checked after each roll?

#

i.e.

#after a roll, house rolled something like a 5 and their total is 18
if house >= 17:
  dice_house = 1 #variable name subject to change
  #this is the variable you put into rollDice()
reef marsh
#

i want to do this , i make a little game and want to make it online ,

i ask for when players enter my game , discord showen status like this

lunar bronze
#

This is off topic. If you want help on this, please open a separate thread.

lunar bronze
#

which loop is "the first loop" and which is 'the second loop"?

light cedarBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ Help with a python project