Roll the Dice 2x6 - Alpha
Author: smoker919
Description Source Code Launch Bot Current Users

Short Description:

Basic dice game for a pair of 6-sided dice, with rare prize option

Full Description

Smoker’s Roll the Dice 2x6

Basic dice game for a pair of 6-sided dice, with rare prize option

————————————————————————————————————————


Almost every version of Roll the Dice out there seems to be bugged or is else trying to fix someone else’s bugged version. So I decided to implement a new version from scratch, i.e., that isn’t building on buggy code.


This bot emulates a basic game of chance with two 6-sided dice. It also supports a rare prize option which is common for this game.


Many other versions of Roll the Dice attempt to build two or more variations of the game into a single bot, but that has proven to be awkward from a configuration perspective or else seems to produce buggy code. So I built this bot to only support one game and to do a correct implement of it. My intent is to publish other bots that will support other variations, e.g., 3x6 and 2x10, but each one will still just support one game and have that game be implemented correctly.


Configuration


Color theme - Simple colour themes. Future versions may support fancier or customizable colour themes.


Price per roll - The amount to tip for one chance to play the game, i.e., to roll the dice.


Max rolls per tip - The maximum number of chances to roll the dice that can be had from a single tip.


Unique prizes for multiple rolls - Whether to reward tipping for multiple chances to roll the dice by guaranteeing unique prizes for each roll rather than allowing duplicate prizes to be won.


Rolls to activate rare prize - The number of times the dice must be rolled before the rare prize will be made available.


Rare prize chance once activated, 1 in - The odds, 1 in n, of winning the rare prize on any roll, assuming the rare prize hasn’t already been won.


Notice frequency (minutes) - How often to show the game notice (rules and prize list).


Winners to retain - The number of recent winners to retain and display upon request.


Prize for n - The prize for a roll of that value with percentage odds for that number coming up for a single roll (see more below).


Rare prize - The rare prize to offer; leave empty if you don’t want to offer a rare prize. The rare prize can only be won once per session.


Game Mechanics


Each tip will trigger a series of 1 to 3 rolls based on the configuration. If there is a rare prize and it has been activated and it has not yet been claimed, then a random chance at winning that prize is attempted before any roll. If the rare prize is not available or is not won on that attempt, then the dice are rolled. Each die is rolled separately and the values are added together for the total roll. If the option is set to for unique prizes for multiple rolls and the total roll has already been rolled in the series, then the dice are rolled again until a unique roll is reached.


Rolling each die separately makes it so that the the odds of each prize being won are not equal, i.e., 7 will always, statistically, come up more frequently than 2 or 12. This is the main difference between Roll the Dice and Spin the Wheel because the odds for the latter are even across all possible outcomes.


Commands


Commands for this bot are namespaced to (hopefully) avoid collisions with other bots.


/dice:prizes - Shows the notice for this game with rules and prizes.


/dice:winners - Shows a notice with the list of the most recent winners.


The broadcaster and moderators can add a username after each command to send the respective notice to a specific user, e.g., ‘/dice:winners smoker919’ will send the winners list just to me.


Future Development


If there is demand I will consider enhancements to the game. Specific future enhancements will likely include emoji and additional colour configuration options including dice colours (gifs are already available in the common pool).


Feedback / Contact


Feedback and requests can be made in the discussion or sent to me directly on Telegram @smoker919.


Requests for custom versions of the game can be negotiated.


About Me


I am a software developer and software manager by profession. I have been coding and writing software for business and industry for a long time, but I am new to Javascript development. I’ve opted to write bots for CB as a way of keeping my technical skills sharp while contributing to a community that I enjoy being part of.


As I am still new to Javascript development, I will continue to iterate on this bot and others as my Javascript skills increase. My philosophy is that code should be readable by others, including my future self. To that extent, anyone reading the source code might find my naming conventions and straightforward OO/procedural style to be slightly verbose, but hopefully it makes the code easier to understand and verify. I welcome feedback from other developers and will duly credit them if I use any of their suggestions.

© Copyright Chaturbate 2011- 2026. All Rights Reserved.