SWMGAMERS.com Forums
https://www.swmgamers.com/forums/

VASSAL Roll Analyzer
https://www.swmgamers.com/forums/viewtopic.php?f=106&t=6532
Page 1 of 1

Author:  shinja [ Fri May 22, 2009 5:58 pm ]
Post subject:  VASSAL Roll Analyzer

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

Author:  NickName [ Thu May 28, 2009 3:57 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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.

Author:  shinja [ Thu May 28, 2009 7:50 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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...

Author:  NickName [ Thu May 28, 2009 8:36 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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.)

Author:  Fool [ Fri May 29, 2009 12:44 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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.

Author:  NickName [ Fri May 29, 2009 3:16 pm ]
Post subject:  Re: VASSAL Roll Analyzer

It was perhaps my single favorite thread ever to appear on gamers. For you sir:

+1 Light Side Points

Author:  Fool [ Fri May 29, 2009 3:23 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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.... :(

Author:  Grand Moff Boris [ Fri May 29, 2009 3:50 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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.

Author:  NickName [ Sat May 30, 2009 1:41 am ]
Post subject:  Re: VASSAL Roll Analyzer

I rest my case! :lol:

Author:  Grand Moff Boris [ Thu Jun 04, 2009 10:50 am ]
Post subject:  Re: VASSAL Roll Analyzer

NickName wrote:
I rest my case! :lol:


I don't understand what you are saying here.

Author:  headache62 [ Mon Jun 08, 2009 12:38 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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....

Author:  NickName [ Mon Jun 08, 2009 5:31 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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. :)

Author:  S1AL [ Sat Jun 13, 2009 2:05 pm ]
Post subject:  Re: VASSAL Roll Analyzer

I'm glad somebody knows enough about CompSci to explain that... I never got past basic programming :cry:.

Author:  headache62 [ Tue Jun 16, 2009 9:28 am ]
Post subject:  Re: VASSAL Roll Analyzer

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

Author:  NickName [ Tue Jun 16, 2009 4:05 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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.

Author:  Partof1 [ Sat Jun 20, 2009 9:34 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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.

Author:  Grambo [ Tue Jun 30, 2009 11:21 pm ]
Post subject:  Re: VASSAL Roll Analyzer

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 :)

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/