Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 14th, 2014 at 4:32:44 PM permalink
If this is permissible on this board, I'd like to get some advice re: a WinCraps Auto-Bet I'm setting up. What I'd like to do is the following: Bet $5 on PL; Bet $5 on Come; Take 2x odds on PL & Come after respective points established. I want only 1 Come bet, and this is the problem. The way I have it set up now, the program wants to bet more than one Come bet. Here're the essentials:

While
PL equals $0
then
Bet $5 on PL
While
A point is established on any number
then
Bet $5 on Come
While
Next roll is NOT a come-out
then
Bet $10 on PL Odds
Bet $10 on all Come Odds bets

The rest of the program is about ending the game. What I think is going on, is that WinCraps thinks I want to keep making Come bets, but I want to stop making them after 1 Come point is established. I know I need a "then: Bet $0 on the Come bet," but I don't know how to word the Condition.

This program is supposed to reflect the way I play at a live table. I also want to save the same rolls to use w/ a different strategy.

If anyone cares to offer this, there is another thing I'd like the program to do: Take odds on the PL & Come on the 2nd roll after Come point established. After a Come point win, take down PL odds, and make another Come bet. I'm thinking I need some "Go to" blocks. My main problem, right now, is working w/ WinCraps & its phrasing system. I know what I want to say, but finding the right phrase is difficult.

I'm not a programmer, and I know there are experts on this board w/ WinCraps. I don't intend to turn this board into a Help board for WinCraps programming, & if this is off base, so be it. Nevertheless, any advice will be appreciated.
wudged
wudged
  • Threads: 2
  • Posts: 998
Joined: Aug 7, 2013
February 14th, 2014 at 5:20:24 PM permalink
I haven't tested this, but you should be able to do 1 of 2 things -

Change:
While
A point is established on any number

To:
When
A point is established on any number


OR

Change:
While
A point is established on any number

To:
While
A point is established on any number
And
Total Come bets are equal to $0
DeMango
DeMango
  • Threads: 36
  • Posts: 2958
Joined: Feb 2, 2010
February 15th, 2014 at 7:04:16 AM permalink
I think we need Steen to write a "Dummies" book!
When a rock is thrown into a pack of dogs, the one that yells the loudest is the one who got hit.
mustangsally
mustangsally
  • Threads: 25
  • Posts: 2463
Joined: Mar 29, 2011
February 15th, 2014 at 7:23:41 AM permalink
Quote: DeMango

I think we need Steen to write a "Dummies" book!

when it comes to learning something
there can not be any one as dumb or dummer (or thick headed) as I am
and I think Steen already did a great job of explaining how to code in WinCraps with some examples in the Help section.

for the OP
The code below is only for WinCraps Classic and not for Pro
Pro, I find, does many things differently from Classic and takes more knowledge
of what words to actually use.

here is what I came up with quickly
give it a test drive. I only checked out the tires.
some blocks of code can be done differently, one should also code so they also understand what is being done

"I know what I want to say, but finding the right phrase is difficult."
in WinCraps Classic (current - 5.1c) one must select code from the condition or action drop-down lists
there are no words to enter except for a comment or a label

example #1:
Bet $5 on PL; Bet $5 on Come; Take 2x odds on PL & Come after respective points established.
I want only 1 Come bet, and this is the problem.


'set max odds in game/config/bet page. that way is easier I find than always coding the max odds
When . . .
Initializing Auto-Bet
then . . .
Set Auto-Take Full Odds to True
While . . .
Pass Line is equal to $ 0
then . . .
Bet $ 5 on Pass Line
While . . .
A point is established on any number
Total Come bets number less than 1
then . . .
Bet $ 5 on Come


there is another thing I'd like the program to do:
Take odds on the PL & Come on the 2nd roll after Come point established.
After a Come point win, take down PL odds, and make another Come bet.

example #2:
For something different like removing the pass line odds after a come bet with odds wins
and setting the rng so the dice rolls are always the same for each session
When . . .
Initializing Auto-Bet
then . . .
Select RNG # 1
Seed RNG with # 12321 'this can be seen on game/config/misc page
While . . .
Pass Line is equal to $ 0
then . . .
Set Auto-Take Full Odds to False
Bet $ 5 on Pass Line
While . . .
A point is established on any number
Total Come bets number less than 1
then . . .
Bet $ 5 on Come
While . . .
Total Come bets number 1
then . . .
Set Auto-Take Full Odds to True
While . . .
Any Come Odds bet has won each time
then . . .
Bet $ 0 on Pass Line Odds
Set Auto-Take Full Odds to False


you mentioned also the second roll to add odds
so one should use a chip stack to track the roll numbers after one come point is established

but you did not mention what kind of rolls to count.
all of them? not the horn numbers?

you have to tell the program what to use and what to change
It only does what you tell it to unless you supply a new condition(s) and a new action(s)

example #3:
When . . .
Initializing Auto-Bet
then . . .
Select RNG # 1
Seed RNG with # 12321
While . . .
Pass Line is equal to $ 0
then . . .
Set Auto-Take Full Odds to False
Bet $ 5 on Pass Line
While . . .
A point is established on any number
Total Come bets number less than 1
then . . .
Bet $ 0 on Chip-Stack # 1
Bet $ 5 on Come
'count rolls for adding odds
While . . .
Total Come bets number more than 0
then . . .
Add $ 1 to Chip-Stack # 1
While . . .
Chip-Stack # 1 is equal to $ 2
then . . .
Set Auto-Take Full Odds to True
While . . .
Any Come Odds bet has won each time
then . . .
Bet $ 0 on Pass Line Odds
Set Auto-Take Full Odds to False


If you add more come bets you need to change the number of them
everything to code in WC Classic is from a drop-down list and many things like bets working on the come out roll can be set in the action/auto-play page instead of in code where you will have to change many values at times.

hope this helps out and you can learn how some things are done.
in the auto-bet page you can also select
options/show steps during play to see if the code is doing what you want

I see some Valentine candy
Sally
I Heart Vi Hart
mustangsally
mustangsally
  • Threads: 25
  • Posts: 2463
Joined: Mar 29, 2011
February 15th, 2014 at 7:26:20 AM permalink
Quote: mustangsally


I see some Valentine's Day candy
Sally

I Heart Vi Hart
Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 15th, 2014 at 7:56:41 AM permalink
Thank you, very much, Sally. You have provided an exhaustive code for my WC Classic program. With your reference to Auto-Take, I have set it for 3,4,5 odds, but for now just setting at 2x is the way to go. I agree that Steen has provided lots of instruction. I printed out most of the Auto-Bet instructions. I just have to get more familiar w/ WC in working out my coding.

I'm going to try your coding, Sally, while at the same time reading up on lines you state that I wasn't aware of. Believe me, it was only after several attempts at getting my own coding to work that I posted this thread. Again, thanks to all who posted advice.
RaleighCraps
RaleighCraps
  • Threads: 79
  • Posts: 2501
Joined: Feb 20, 2010
February 15th, 2014 at 2:00:29 PM permalink
Check out Flags.

When you have a bet you want to make on certain conditions, I find it easiest to control the decision with a Flag.
In this case, I would create a Flag called ComeBetMade
When a new shooter gets the dice, set the ComeBetMade flag to FALSE

Then you do a check of the Flag, and if it is FALSE, then you make the Come bet, AND set the Flag to TRUE.

Anytime the Flag is found to be TRUE, no bet will be made.

You need to remember to set the ComeBetMade back to FALSE when the Come Bet number is hit though, so you will know to make another Come Bet.
Always borrow money from a pessimist; They don't expect to get paid back ! Be yourself and speak your thoughts. Those who matter won't mind, and those that mind, don't matter!
Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 15th, 2014 at 3:14:10 PM permalink
On running Sally's Example #2, the program gives me something like, "You can't make a Come bet on the Point." Of course, I don't want to do this & thought WC understood this from the beginning. In real play, the Point wins & the Come moves to the former Point.
I'm at a loss how to code the program to do this. Any thoughts are welcome.

Raleigh, your advice is well received & I'll continue to consider it. Thanks.
mustangsally
mustangsally
  • Threads: 25
  • Posts: 2463
Joined: Mar 29, 2011
February 17th, 2014 at 11:54:12 AM permalink
post the code you used when you get the chance

also do you have the "allow put bets" un-checked on the Bet page?
and also
on the action /auto-play page
is Auto-Handle Winning Bets to "Same Bet - Take Winnings"
I think these two together would set the warning but have not tested it yet until I see your code
copy and paste it here directly from your auto-bet file

It may work better with
Auto-Handle Winning Bets to "Take Bet and Winnings" or just "Manual" if you want to see it working

with come bets one should not use the same bet - take winnings
as that makes a put bet, so you would have to allow put bets and you probably do not want that

The Pass Line may also have to be changed too
While . . .
Next roll is a come-out roll
then . . .
Bet $ 5 on Pass Line

also something I use a lot
in auto-bet under
options/ check - set show steps during play

that way as you roll the dice you can watch the program step through each line or blocks of code
I find almost all my errors that way

Sally
I Heart Vi Hart
Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 22nd, 2014 at 9:27:17 PM permalink
Sally, thanks. I was gone when you posted. I'll get back to you when I can.
Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 24th, 2014 at 6:25:53 PM permalink
Sally, found that the window, "You can't make a Come bet on the point," was just a message window. When I closed it, things were ok.
I altered your Example #2 & didn't use Example #3 re: the delayed odds laying, because it's too complex for me. Here's your altered Example #2 & it is working for me:

When
Initializing Auto-Bet
then
Select RNG #1
Seed RNG with #12321 [I ran this game 5 times w/ seeds 22321, 32321, etc., to see results for different series.]

While
Pass Line is equal to $0
then
Bet $5 on Pass Line

While
A point is established on any number
then
Bet $5 on Come

While
Total Come bets number 1
then
Bet $10 on Pass Line odds
Bet $10 on Come odds bets

While
Any Come Odds bet has won 1 time
then
Bet $0 on Pass Line Odds
Bet $5 on Come

When Bankroll is equal to $50
or when
Simulated hours are equal to 2
then
Stop Auto-Bet/Hyper-Drive

If you have any thoughts/questions re: this, let me know.
CrapsGenious
CrapsGenious
  • Threads: 33
  • Posts: 408
Joined: Dec 24, 2013
February 24th, 2014 at 8:08:35 PM permalink
Quote: Sonny44

Sally, found that the window, "You can't make a Come bet on the point," was just a message window. When I closed it, things were ok.
I altered your Example #2 & didn't use Example #3 re: the delayed odds laying, because it's too complex for me. Here's your altered Example #2 & it is working for me:

When
Initializing Auto-Bet
then
Select RNG #1
Seed RNG with #12321 [I ran this game 5 times w/ seeds 22321, 32321, etc., to see results for different series.]

While
Pass Line is equal to $0
then
Bet $5 on Pass Line

While
A point is established on any number
then
Bet $5 on Come

While
Total Come bets number 1
then
Bet $10 on Pass Line odds
Bet $10 on Come odds bets

While
Any Come Odds bet has won 1 time
then
Bet $0 on Pass Line Odds
Bet $5 on Come

When Bankroll is equal to $50
or when
Simulated hours are equal to 2
then
Stop Auto-Bet/Hyper-Drive

If you have any thoughts/questions re: this, let me know.



You can not make a come bet on the point because the come is always on and gets paid immediately after the number is rolled as a new point.
Example if on comeout Point is 6 and you place a $5.00 come bet, shooter makes the point 6, puck goes off Come goes to 6 with option to take upto max odds and request odds working is optional.

If you choose odds not working and shooter rolls 6 on come out roll, then the 6/come is paid and taken down.
8 more years till retirement.
Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 24th, 2014 at 8:37:48 PM permalink
Quote: CrapsGenious


You can not make a come bet on the point because the come is always on and gets paid immediately after the number is rolled as a new point. Example if on comeout Point is 6 and you place a $5.00 come bet, shooter makes the point 6, puck goes off Come goes to 6 with option to take upto max odds and request odds working is optional. If you choose odds not working and shooter rolls 6 on come out roll, then the 6/come is paid and taken down.


Yes, I know all this, CG. I was just not understanding what WC was doing by bringing up that window. At any rate, it's moot, now. Thanks, anyway.
Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 24th, 2014 at 8:45:25 PM permalink
Sally, there is a flaw in my program. I didn't play it out fully enough to discover that at some point, it starts making more than one Come bet. I think it's on the roll when there's one Come bet w/ odds & a PL bet w/ no odds. Instead of laying odds on the PL, it makes another Come bet, then another, etc. BTW, I changed "While Pass Line is equal to $0" to "While On a Come Out roll," thinking this would solve it, but it didn't.
mustangsally
mustangsally
  • Threads: 25
  • Posts: 2463
Joined: Mar 29, 2011
February 25th, 2014 at 7:13:55 AM permalink
Quote: Sonny44

Sally, there is a flaw in my program. I didn't play it out fully enough to discover that at some point, it starts making more than one Come bet.

I do not know. I did not run it either
but looking at what you posted last

for max one come bet, I would use this in the file

While . . .
A point is established on any number
Total Come bets number less than 1
then . . .
Bet $ 5 on Come

for max 2 come bets

While . . .
A point is established on any number
Total Come bets number less than 2
then . . .
Bet $ 5 on Come

and so on
for a come bet every roll
While . . .
A point is established on any number
then . . .
Bet $ 5 on Come

using action/auto-bet/options/show steps during play
will point to what line(s) of code is doing what and when after a dice roll.
I find my errors there most times
Sally
I Heart Vi Hart
Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 25th, 2014 at 5:55:39 PM permalink
Quote: mustangsally

using action/auto-bet/options/show steps during play
will point to what line(s) of code is doing what and when after a dice roll. I find my errors there most times
Sally


Sally, thanks. I'll try what you suggested.
Sonny44
Sonny44
  • Threads: 13
  • Posts: 217
Joined: May 13, 2013
February 26th, 2014 at 7:44:49 PM permalink
Sally,

I fixed the program by taking out:

"While
Any Come Odds bet has won 1 time
then
Bet $0 on Pass Line Odds
Bet $5 on Come"

I won't go into the details, but here is the program that's working:

When
Initializing Auto-Bet
then
Select RNG #1
Seed RNG with #12321

While
Next roll is a come-out roll
then
Bet $5 on Pass Line

While
A point is established on any number
Total Come bets number less than 1
then
Bet $5 on Come

While
Total Come bets number 1
then
Bet $10 on Pass Line Odds
Bet $10 on all Come Odds bets

When
Bankroll is equal to $50
or when
Simulated hours are equal to 2
then
Stop Auto-Betting/Hyper-Drive

Thanks for your input! It at least gave me something to go on.

P.S. I almost memorized the rolls, using the same seed every game.
  • Jump to: