About 74 results
Open links in new tab
  1. project - How do I loop this Dice Game so that it plays for five rounds ...

    Nov 19, 2018 · How do I loop this Dice Game so that it plays for five rounds? (Python GCSE) Asked 7 years, 2 months ago Modified 6 years, 11 months ago Viewed 11k times

  2. function - Python Dice Game Guidance - Stack Overflow

    The dice are then rolled, and the result is set as the 'point' 3. The dice are rolled again, with a 7 or 11 resulting in a win, a 2, 3, or 12 resulting in a loss, and any other outcome resulting in a reroll.

  3. Dice rolling game in python - Stack Overflow

    Sep 18, 2020 · I am completely new to coding and trying to write somewhat of a dice rolling program/game. I want the program to ask how many dice the user wants to roll, and how many times …

  4. probability - Dice rolling problem - Cross Validated

    Oct 1, 2023 · A game is played with $n$ dice, and an additional parameter $r<=6$. The game has one player who must throw all $n$ dice on each round and add the score to the total.

  5. simulating rolling 2 dice in Python - Stack Overflow

    def dice(n): x=random.randint(1,6) y=random.randint(1,6) for i in range(n): z=x+y return z My problem is that this is only returning the outcome of rolling the dice 1 time, so the outcome is always 2-12. I want …

  6. Dice roll in javascript - Stack Overflow

    Dec 20, 2013 · 0 Created Dice Roll with Rolling animation effect using . This will allow you to "roll" dice in 2D, giving you a random set of dice after 1 second.

  7. c++ dice game simulate rolling two dices - Stack Overflow

    Feb 17, 2014 · I'm a c++ beginner, I need to create a dice game simulate rolling two dices. I'm quite confused with using the header file. But first of all, why do I need to return the no.of face of the dice? …

  8. Dice Rolling java program - Stack Overflow

    Oct 7, 2014 · I'm making a dice rolling game! 2 dice will be rolled and 2 random numbers between 1-6 will be generated. The sum will be taken from the 2 numbers and used to decide what is next. If …

  9. C program dice game - Stack Overflow

    I am in trouble with my dice game. I have a task: The rules of the game are the following: 1. The player rolls the dice and adds up the face values. 2. If the first roll is a 7 or 11, the player w...

  10. Dice game between 2 players up to a score of 50 - Stack Overflow

    Jul 28, 2020 · 1 I am creating a game where two players are rolling dice against each other. Two people (player A, player B) play a dice game. they roll a dice each round and the higher number wins the …