DevChatterBot
DevChatterBot copied to clipboard
"Deal or No Deal" Game
Game Description: The main game revolves around the opening of a set of numbered boxes, each of which contains a different prize (tokens). The contents (i.e., the values) of all of the cases are known at the start of the game, but the specific location of any prize is unknown.
- A chat user types "!dnd" and is being charged 25 tokens to play. (you can set this lower or higher)
- In a countdown of 30 seconds, other chat users pick "box values" from 1 to 15 by typing "!pick 1" or "!pick 2" etc.. -Only a unique box number can be picked. -A user can hold 1 box per game. (5 players - 5 boxes) -If no one picks, the game is guaranteed to have at least 5 playable boxes. -The "box picker" gets an immediate whisper from the bot about the approximate token value that his box holds. -There's a 30% chance that the bot will lie to you about the value you hold"
- The contestant then begins choosing boxes that are to be removed from play by typing "!pick brendaneus" or "!pick aceflameseer" - if those users picked a box in the countdown. -if the player is AFK, a random box is picked after 30 seconds. -the other players might think they have the correct value that the bot whispered, but can be wrong. The main player might not trust them.
- The amount inside each chosen case is immediately revealed;
- after every (boxnumber % 2) boxes picked the player will be offered a deal, which is a value somewhere in between the highest box value available and the lowest. For example: if there are 4 boxes values[0,5,10,15] the Deal offer would be around 8.
- The player accepts or declines the deal by typing "!dnd accept" or "!dnd decline". If he accepts the game is over.
- If the player declined the deal, he plays until there is only ONE box remaining, and that last box token value is rewarded to him.
game commands; !dnd - starts a game !dnd pick x - picks a box number !dnd accept or !dnd decline - accept/decline deal
Summary: You pay 25 tokens, you might win 100 (or you can set this higher) or you can win 1 token. It's a gamble in the end. Good luck reading my code. I tried to use as many interfaces of yours as possible.
you can read more on https://en.wikipedia.org/wiki/Deal_or_No_Deal
It's a variation of a casino "deal no deal game" made for the chat. Feel free to modify the configuration of the game. There might be a lot of bugs, but I wanted you to review it and fix a lot of the stuff. It can be really fun if there are a lot of people playing it, and some people would be saying "I have a HIGH VALUE, Pick me last" etc, but you shouldn't trust anyone in the chat 😄, or the bot might have lied to them .
I Hope you can review it on stream, so I can learn a lot more! Thank you 😸 Your loyal viewer, aceflameseer P.S. this is my REAL first pull request ever. ❤️
I'll get to reviewing the code right now, but I first want to say that this is an awesome idea, @AleksAce !
Love these new game ideas coming in. This bot is really something special. Congrats on your first pull request!
Thoughts on costs and payouts for now
Wow, thanks guys 😄 , I'm glad i can contribute to something, since you've all given me a lot of knowledge. 👍 I'm having a pretty busy week with college, so I'll make sure to watch the VOD's if you review it live. Thanks devchatter community!
On the costs and payouts: We should make sure the average payout is somewhere equal to the cost to play. It wouldn't be a gamble if someone could start a game and accept the first deal of lets say 500 coins right away 😄
cost 200 coins - 274 avg
cost 400 coins - 547 avg
Also, I think the highest payout should be x3 from the 2nd highest, Just so it can be exclusive.
We need more thoughts on this 👍