Conquer Club

Conquerclub odds don't match Risk/accepted odds?

Talk about all things related to Conquer Club

Moderator: Community Team

Forum rules
Please read the community guidelines before posting.

Conquerclub odds don't match Risk/accepted odds?

Postby barrycarter on Fri Oct 08, 2010 1:57 pm

I wrote a simple Perl script to compute "intensity cube" (dice) odds,
but my results differ from the generally accepted odds. Could someone
take a quick look at:

http://github.com/barrycarter/bcapps/bl ... b-cubes.pl

and see what I'm doing wrong? When I do this:

bc-conquerclub-cubes.pl | sort | uniq -c

I get:

1350 A: 0, D: 2
3780 A: 1, D: 1
2646 A: 2, D: 0

According to http://gamesbyemail.com/Games/Gambit/BattleOdds (and
other sites), the generally accepted odds are:

2275 A: 0, D: 2
2611 A: 1, D: 1
2890 A: 2, D: 0

Is this a glitch in my program or have I discovered something Earth-shattering?

Of course, I may just be misunderstanding the way intensity cubes work.
Sergeant 1st Class barrycarter
 
Posts: 51
Joined: Sat Jul 31, 2010 10:42 am

Re: Conquerclub odds don't match Risk/accepted odds?

Postby sherkaner on Fri Oct 08, 2010 2:15 pm

$d1 >= $a1, don't you want to do @d[0] >= @a[0] (or something like that)?
(I don't know perl, so I'm guessing a bit)
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: Conquerclub odds don't match Risk/accepted odds?

Postby drunkmonkey on Fri Oct 08, 2010 2:30 pm

sherkaner wrote:$d1 >= $a1, don't you want to do @d[0] >= @a[0] (or something like that)?
(I don't know perl, so I'm guessing a bit)


This is it. I guarantee he's banging his head on the desk as he reads it.
Image
User avatar
Major drunkmonkey
 
Posts: 1704
Joined: Thu May 14, 2009 4:00 pm

Re: Conquerclub odds don't match Risk/accepted odds?

Postby barrycarter on Fri Oct 08, 2010 3:34 pm

sherkaner wrote:$d1 >= $a1, don't you want to do @d[0] >= @a[0] (or something like that)?
(I don't know perl, so I'm guessing a bit)


ARGH! That might be it. I'm using variables called $a1, and $a[1]... that's just bad programming :(
Sergeant 1st Class barrycarter
 
Posts: 51
Joined: Sat Jul 31, 2010 10:42 am

Re: Conquerclub odds don't match Risk/accepted odds?

Postby barrycarter on Fri Oct 08, 2010 3:37 pm

drunkmonkey wrote:
sherkaner wrote:$d1 >= $a1, don't you want to do @d[0] >= @a[0] (or something like that)?
(I don't know perl, so I'm guessing a bit)


This is it. I guarantee he's banging his head on the desk as he reads it.


BANG BANG BANG! OK, I corrected my error and got the accepted results.

I now officially suck at both ConquerClub AND writing Perl scripts, woohoo!
Sergeant 1st Class barrycarter
 
Posts: 51
Joined: Sat Jul 31, 2010 10:42 am

Re: Conquerclub odds don't match Risk/accepted odds?

Postby drunkmonkey on Fri Oct 08, 2010 3:48 pm

barrycarter wrote:I now officially suck at both ConquerClub AND writing Perl scripts, woohoo!


It happens. You have no idea how much frustration I went through this morning over 1 letter in a variable. :x
Image
User avatar
Major drunkmonkey
 
Posts: 1704
Joined: Thu May 14, 2009 4:00 pm

Re: Conquerclub odds don't match Risk/accepted odds?

Postby SirSebstar on Fri Oct 08, 2010 4:19 pm

this brightened my day gentleman. thank you all
Image
User avatar
Major SirSebstar
 
Posts: 6969
Joined: Fri Oct 27, 2006 7:51 am
Location: SirSebstar is BACK. Highscore: Colonel Score: 2919 21/03/2011


Return to Conquer Club Discussion

Who is online

Users browsing this forum: No registered users