logo

All times are UTC - 6 hours

Mark forums read


Post new topic Reply to topic  [ 17 posts ] 

Author Message
Offline
 Post subject: VASSAL Roll Analyzer
PostPosted: Fri May 22, 2009 5:58 pm 
General
General

Joined: Sun Sep 02, 2007 11:15 pm
Posts: 482
Location: Redmond, WA
I wrote a simple program to analyze rolls after a VASSAL game. Just copy and paste the entire text log from the game (starting from the first roll) into the program, then hit analyze. It will tell you the average rolls of both players, how many rolls were above and below 11 and how many 1s and 20s were rolled.

http://www.bloomilk.com/Apps/RollAnalyzer.zip


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Thu May 28, 2009 3:57 pm 
Hall of Fame Member
Hall of Fame Member

Joined: Sun Sep 02, 2007 11:43 am
Posts: 1163
Location: Fremont, CA
No one really wants to know that it's random. They want to complain based on superstition that it isn't. :)

But thanks for the effort. Might come in handy down the road.

_________________


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Thu May 28, 2009 7:50 pm 
General
General

Joined: Sun Sep 02, 2007 11:15 pm
Posts: 482
Location: Redmond, WA
Well in the last game that I played, my opponent rolled 11 or higher 71% of the time. Sometimes it's nice to see that after the game. I *thought* he was making almost all of his Evades...


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Thu May 28, 2009 8:36 pm 
Hall of Fame Member
Hall of Fame Member

Joined: Sun Sep 02, 2007 11:43 am
Posts: 1163
Location: Fremont, CA
Yeah, and last night in RL in three triple attacks Jarael rolled 4 or less on 8 of the 9 attacks. The first was literally 4, 4, 4 which is why my opponent and I were commenting on her sobriety or lack thereof. :P

So until you put in statistical analysis for probable margin of error in small samples it won't convince anyone of anything (and even that likely wouldn't help--math is akin to voodoo to too many people.)

_________________


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Fri May 29, 2009 12:44 pm 
Droid Army Commander
Droid Army Commander

Joined: Fri Aug 31, 2007 1:37 pm
Posts: 1280
I did some random dice tests with 4 sets of numbers. One was Vassal, 3 were at home with D20's

It was actually quite funny to see people actually be unable to guess which was which.


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Fri May 29, 2009 3:16 pm 
Hall of Fame Member
Hall of Fame Member

Joined: Sun Sep 02, 2007 11:43 am
Posts: 1163
Location: Fremont, CA
It was perhaps my single favorite thread ever to appear on gamers. For you sir:

+1 Light Side Points

_________________


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Fri May 29, 2009 3:23 pm 
Droid Army Commander
Droid Army Commander

Joined: Fri Aug 31, 2007 1:37 pm
Posts: 1280
NickName wrote:
It was perhaps my single favorite thread ever to appear on gamers. For you sir:

+1 Light Side Points


*Fist Pump / High five*

It was thus fire-bombed by terrorists and removed from existence.... :(


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Fri May 29, 2009 3:50 pm 
One of The Ones
One of The Ones
User avatar

Joined: Sat Sep 01, 2007 1:08 pm
Posts: 8395
NickName wrote:
No one really wants to know that it's random. They want to complain based on superstition that it isn't. :)


:roll:

Sigh. It's not superstition. I will never forget the night I was playing a vassal game and before each roll I called "high" or "low" before the roll was made. I wasn't correct every time but it was uncanny how accurate my guesses were.

Personally I think the rolls have something to do with the timing of the roll and who is doing the rolling. The numbers, IMO, tend to be more random when one person rolls in succession than when the players alternate.

It's also been my experience that a roll of a 1 by one player is immediately followed by a 20 by the other. Perhaps this is not always the case but often enough that it is more than just "superstition."

It's a big part of why I stopped playing on Vassal.

Quote:
But thanks for the effort. Might come in handy down the road.


Yeah but not for the reason you probably mean.

_________________
Click here to check out all the people who have realized the truth. Someday you will, too.

"I would really, really like to not have anything else happen at the end of the round other than things just ending." -- Sithborg


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Sat May 30, 2009 1:41 am 
Hall of Fame Member
Hall of Fame Member

Joined: Sun Sep 02, 2007 11:43 am
Posts: 1163
Location: Fremont, CA
I rest my case! :lol:

_________________


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Thu Jun 04, 2009 10:50 am 
One of The Ones
One of The Ones
User avatar

Joined: Sat Sep 01, 2007 1:08 pm
Posts: 8395
NickName wrote:
I rest my case! :lol:


I don't understand what you are saying here.

_________________
Click here to check out all the people who have realized the truth. Someday you will, too.

"I would really, really like to not have anything else happen at the end of the round other than things just ending." -- Sithborg


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Mon Jun 08, 2009 12:38 pm 
Death Star Designers
Death Star Designers
User avatar

Joined: Sun Sep 02, 2007 2:07 pm
Posts: 602
Grand Moff Boris wrote:
Personally I think the rolls have something to do with the timing of the roll and who is doing the rolling.


The way a computer makes a "random" number is to pull the last digit in the millisecond from the system timer, run it through an algorithm that tells it the range (for example, in Vassal it is 1-20, obviously), and then it spits out the number. The computer has to have a seed number to form the "random" number, and the speed of the system timer (the same one that runs your computer's clock) determines the "random" number.

So it is all about the timing of the roll :)

I knew that degree in Computer Information Systems would come in handy someday....


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Mon Jun 08, 2009 5:31 pm 
Hall of Fame Member
Hall of Fame Member

Joined: Sun Sep 02, 2007 11:43 am
Posts: 1163
Location: Fremont, CA
It's kinda about the timing of the roll, and kinda not. You can't time something perfectly to predict what the roll will be. For example, if you know the next roll will be made at 10:00:00:003 the roll isn't necessarily a 7 or any particular number.

What you can do is take enough roll data, use that to reverse engineer the seed, then reverse-reverse engineer that seed back into the full list and thus "predict" what the entire pattern of numbers will be into the future.

The numbers themselves pass all tests of randomness. It's just that a computer scientist armed with the proper knowledge and tools can figure out how the trick is done to know what the list will be.

Your average computer user cannot. Your average scientist without a computer cannot (in any reasonable time.)

So you can't use it in its pure form for something like cryptography or online gambling where the ability to reverse engineer it would be a security or financial risk. For everything else it's fine.

VASSAL uses Mersenne Twister as its algorithm now. It's generally considered to have random distribution. The criticisms for the method tend to be about efficiency only, and presumably no one here has ever worried about how long it takes for VASSAL to generate the die roll so I think we're good. :)

_________________


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Sat Jun 13, 2009 2:05 pm 
Really Cool Alien from a Cantina
Really Cool Alien from a Cantina
User avatar

Joined: Wed Dec 05, 2007 9:30 pm
Posts: 160
Location: Colorado
I'm glad somebody knows enough about CompSci to explain that... I never got past basic programming :cry:.


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Tue Jun 16, 2009 9:28 am 
Death Star Designers
Death Star Designers
User avatar

Joined: Sun Sep 02, 2007 2:07 pm
Posts: 602
NickName wrote:
The numbers themselves pass all tests of randomness. It's just that a computer scientist armed with the proper knowledge and tools can figure out how the trick is done to know what the list will be.


If I remember correctly, given a large enough data set you can predict what number will come up next, but we're talking data sets in the order of hundreds of billions of precisely tracked random numbers and the exact moment they were generated.

So, yes, it's random enough for me :D


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Tue Jun 16, 2009 4:05 pm 
Hall of Fame Member
Hall of Fame Member

Joined: Sun Sep 02, 2007 11:43 am
Posts: 1163
Location: Fremont, CA
I think I read somewhere that it's actually surprisingly lower than one might expect for Mercene Twister specifically. On the order of 500 rolls. But since no game will ever generate that many, and no one who plays SWM will be likely be able to do the math to figure it out it's rather meaningless.

_________________


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Sat Jun 20, 2009 9:34 pm 
General
General
User avatar

Joined: Mon Jul 28, 2008 8:14 pm
Posts: 411
Location: St. Albert,AB, Canada
I would be interested to see the results of a comparison from Vassal to real dice. The timed system must very well have to do with randomness more than anything. Mostly, I think, because the timing would be more regular over a vassal game vs. irl, ie conversation, shaking dice in palm, or even dropping the dice.

_________________
Family is more than bloodline- Mandalorian proverb

{11111111011][7777777777777777777777777777777
<(HHHHHQXX)=(77777777777777777777777777777777


Top
 Profile  
Reply with quote  

Offline
 Post subject: Re: VASSAL Roll Analyzer
PostPosted: Tue Jun 30, 2009 11:21 pm 
Imperial Dignitaries
Imperial Dignitaries
User avatar

Joined: Mon Sep 03, 2007 12:42 pm
Posts: 587
The only thing I can be sure of is that my rolls on Vassal will be, on average, just as bad as my rolls in real life... so I think that means it is correctly random :)

_________________
I game, therefore I am.
Image
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC - 6 hours

Mark forums read

Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Jedi Knights style by Scott Stubblefield