Bitcoin Forum
July 10, 2024, 08:44:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Gambling / Retrieve 'chance' from the Preset List on: August 10, 2017, 04:29:43 PM
Hello,  I've been trying to figure out if there is a simple way to retrieve the 'chance' associated with a preset from the Preset List.  I have a list of bets:

0.00000001&90.0000
0.00000002&80.0000
0.00000003&70.0000

for example that are loaded using 'loadstrategy()'.  I set nextbet like:

  if win then
    nextbet = presetlist(true)
  else
    nextbet = presetlist(false)
  end

and it seems to work fine as moving the bet up and down however the 'chance' stays fixed to whatever was set above in the general settings.  I realize I could basically re-create the list in an array or something however I was hoping for a simpler solution, such as directly accessing this field or even better shouldn't it be automatically updating 'chance' when the particular line in the Preset List is called?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!