python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Python, 2 dice, unable to progress (NEWBIE)
I'm trying to write a 'game' for 2 players: 2 dice, rolled until both dice show 6 (6 and 6 wins, 1 and 6 is a reroll of both dice etc.). I'm stuck as my code ends with any instance of rolling a 6. I c...
Alex
Votes: 0
Answers: 0
how to make a roll dice simulator
I created a roll dice simulator and I take yes or no from user if they want to roll the dice. So if anyone typed a wrong letter than I want the whole code will run again automatically.
I tried creatin...
Mayank
Votes: 0
Answers: 0
Cannot get int to be displayed in text box for dice roller app
I'm trying to get back into programming and I'm having trouble getting the final int answers into the text boxes at the end. It has been a few years since I've coded, so if I messed up big time, pleas...
Stefini Weisel
Votes: 0
Answers: 2
How do I print the result of the individual die in the dice roll program in python?
This is what I have so far:
import random
r = int(input("Enter the number of dice to roll: "))
s = int(input("Enter the number of sides per die: "))
def Rolldice(s,r):
for i i...
beginner_geek07
Votes: 0
Answers: 2