Python Forum
Making a percentile dice roller and dice roller
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making a percentile dice roller and dice roller
#1
So I believe i have the general concept of of what i am doing for this but I may not. I havn't programmed in a long 3 years. So I am pretty rusty!

Before you look at the code my idea is to have the percentile dice there so I created the bounderies of the amount that it can go with the min and the max. After I created the roll for the print so when the roll is less well you will get it from there. What i'm more or less confused on is I how to get the host to have person who starts the command, and the user being the one who bet as well as the amount the user is betting. Hell I could be way off and have no idea too.
What i currently have is pretty basic.


import random
min = 1
max = 100

B55x2 = '!55x2 {User} {Ammount}'
	while B55x2 == '!55x2 {User} {Ammount}'
		print( {User} ' bet on 55x2 vs ' {Host} ' for a bet of ' {Amount}


roll = random.randint(min, max)
	if roll > 54:
		print ( {Host} ' rolled ' {roll} ' with percentile dice')
		print ( {User} ' has Won their bet!')
	if roll < 55:
		print( {Host} ' rolled ' {roll} ' with percentile dice')
		print( {Host} ' has Lost their bet!')
Reply


Messages In This Thread
Making a percentile dice roller and dice roller - by Fixer243 - Sep-30-2018, 04:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  np.percentile returns wrong value? AceTylercholine 2 651 Jul-13-2023, 06:59 PM
Last Post: Skaperen
  While loop not ending (Best of 10 dice game) K3nidi 3 1,484 Jul-09-2022, 09:53 AM
Last Post: K3nidi
  Dice Roll (Find out how many rolls until specified streak) DustinKlent 4 3,987 Jun-13-2021, 09:44 AM
Last Post: Gribouillis
  Help with dice roll program kraco 4 2,091 Sep-22-2020, 02:06 PM
Last Post: kraco
  Help with rerolling the dice blacklight 3 2,930 Jul-01-2020, 05:35 PM
Last Post: blacklight
  game of the goose - dice problem koop 4 3,467 Apr-11-2020, 02:48 PM
Last Post: ibreeden
  simple dice roll Byzas 1 2,336 Mar-21-2019, 02:29 AM
Last Post: ichabod801
Photo roll of the dice kyle007 0 1,716 Mar-11-2019, 01:58 AM
Last Post: kyle007
  Dice game Mazzo76 1 1,968 Feb-26-2019, 11:55 AM
Last Post: Larz60+
  Issue with my 'roll the dice simulation'-exercise (cannot break out of the loop) Placebo 2 3,499 Sep-30-2018, 01:19 PM
Last Post: Placebo

Forum Jump:

User Panel Messages

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