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.
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
when it comes to learning somethingQuote: DeMangoI think we need Steen to write a "Dummies" book!
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
Quote: mustangsally
I see some Valentine's Day candy
Sally
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.
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.
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.
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 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.
Quote: Sonny44Sally, 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.
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.
I do not know. I did not run it eitherQuote: Sonny44Sally, 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.
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
Quote: mustangsallyusing 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.
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.