title: Creating an algorithm for a roulette bot
body: <p>I was wondering if there's any way that I can make a bot that can play roulette (casino game in case you're wondering) while still making a profit?</p>
  
  <p>Say we have a simpler version of a roulette game where the following features count:</p>
  
  <ul>
  <li>Number range is from 0 to 14</li>
  <li>Red is 1 - 7</li>
  <li>Black is 8 - 14</li>
  <li>Green (the rare one) is 0</li>
  <li>You can only bet on either color and any amount you want (as long as you have  the amount)</li>
  <li>A number from the range is picked at random each round.</li>
  <li>Colors red and black will grant you twice the amount you bet if you win</li>
  <li>Green will grant you 15 times the amount since it's 1/15 chance to get the number.</li>
  </ul>
  
  <p>I'm using NodeJS to create my bot, and so far without any luck. This is of course only for practice and it would be pointless to use on a casino anyways since if you're winning too much, you're most likely to get thrown out.</p>
  
  <p><strong>Edit (13.10.2019):</strong></p>
  
  <p>I realize now, 4 years later, that this was a kind of silly question since no, there isn't any way to create a bot that could win every game of roulette. <em>Because that's how the game is designed...</em></p>
  
  <p>For those stumbling upon this question today, I apologize for the silly question. I was a naive kid wanting to win some CS:GO skins by creating a bot, not realizing that if creating a bot that can win every time, gambling in roulette probably wouldn't be a thing.</p>
  
  <p>For those with the same question, see @Draco18s answer. He explains it pretty well why there is <em>no</em> way to win every time in roulette.</p>