Questions tagged [gambling]

For questions about programming gambling games.

47 questions
1
vote
1 answer

Is it possible to use 2 Mathematical Conditions in a If Statement?

I'm creating a blackjack program. I need to check if the dealer's hand is greater than the players hand and also less then 21. Variables dValue1 is the dealer's first card dValue2 is the dealer's second card pValue1 is the player's first…
PizzaParrot
  • 121
  • 8
1
vote
3 answers

AngularJS Lucky number generator: How to add progress bar animation?

I am new to angularjs. I have coded this Lucky number generator app that generates lucky number after 5 secs after clicking "Generate" button. I want to add a progress bar that completes in 5s duration and then displays result. Current progress bar…
sidd68
  • 31
  • 1
  • 5
1
vote
0 answers

Deconstructing slot machine reels?

I have a movie of slot machine game play. How to extract only movie frames when the reels are stopped? During spinning game shows fake symbols, which are not part of the game mathematics. Until now I am doing it manually (by screen shots), which…
Todor Balabanov
  • 376
  • 3
  • 6
  • 17
1
vote
2 answers

Gambling algorithm

I have a hard time figuring out how to write a program in R. I am suppose to bet 1$ on red, if I win I get 1$ and bet again, if I lose I double my bet. The program supposed to run until I win 10$ or bet becomes greater than 100. Here is my code: …
AK9309
  • 761
  • 3
  • 13
  • 33
0
votes
0 answers

Unable to detect elements inside an iframe using Selenium in Python Stake.com

I'm working on a bot for the game 'Crazy Time' on various sites. Using Selenium with Python, I can successfully connect to the website and switch to the desired iframe. However, I'm unable to detect any elements inside this iframe. from selenium…
0
votes
2 answers

My unfair coin flipping code is giving conflicting results with theory

I was reading the wikipedia page for the Gambler's ruin concept, and I decided to quickly code it myself as a quick challenge. Just like the example in the "Unfair coin flipping" part on the right, I created an unfair coin with a 0.6 probability for…
yasper99
  • 21
  • 4
0
votes
0 answers

Apply Big road baccarat logic on my react table

I am creating a baccarat big road for my small project. But I am having a difficulties on applying the logic of baccarat big road. The one that I am applying is the baccarat road on Baccarat Scoreboard mobile app by GameStrings. Please advice me or…
0
votes
1 answer

Get random float with % odds (Gambling Crash game style)

I am trying to figure out how to create a random float with custom odds. The game i am trying to replicate is Crash. So the minimum number would be 1, and the max could be for example 1000. I have the formula from this site…
Rittari771
  • 13
  • 1
  • 4
0
votes
1 answer

java script game / I want to change one number by clicking on it. What should I do?

겜블링 게임