James! I GOT RANDOM!

Locked
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

James! I GOT RANDOM!

Post by Erik Mortis »

C Perl\eg\risk>perl roll.pl1C Perl\eg\risk>perl roll.pl3221C Perl\eg\risk>perl roll.pl345645445631Woot.. we got random number generation... now I can make the Risk Dice roller... than I'll just have to teach it how to do the comparison technique we use...(Yes, those lists all end with 1 cause I told the prog to stop when it hit one so it didn't go on forever.. Erik Mortis BrookshireCount of Monty CriscoCommoner of AlexandrettaHeir to the Line of Metzler/Mortis/RaynorBig Cheese of Rrakanychan Inc.Shirerithian ElderGeneral in the YAC

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: James! I GOT RANDOM!

Post by Erik Mortis »

We have Dice rolling!Attacking Units5Defending Units7attack: 5 1 5 3 1defence: 1 2 3 2 2 2 6 Erik Mortis BrookshireCount of Monty CriscoCommoner of AlexandrettaHeir to the Line of Metzler/Mortis/RaynorBig Cheese of Rrakanychan Inc.Shirerithian ElderGeneral in the YAC

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: James! I GOT RANDOM!

Post by Erik Mortis »

C Perl\eg\risk>perl roll.plName "main::attack" used only once: possible typo at roll.pl line 12.Name "main::defend" used only once: possible typo at roll.pl line 13.Attacking Units500Defending Units0Attack: 1 5 2 1 3 4 6 4 3 6 4 4 2 5 2 3 6 3 2 1 2 4 5 3 3 5 5 6 3 4 3 1 6 3 1 44 5 4 3 4 1 3 4 3 3 6 2 6 6 6 4 5 5 6 5 6 3 1 4 5 4 3 4 2 5 3 3 2 3 5 5 5 4 1 43 5 1 4 1 4 3 2 2 1 3 1 3 6 5 3 2 4 1 4 6 4 4 4 1 1 1 3 3 4 3 3 4 3 4 5 3 4 2 55 3 3 6 3 2 4 5 1 1 4 6 2 4 4 6 1 2 1 5 6 5 3 1 6 2 3 4 4 1 3 2 2 3 3 5 5 5 1 65 1 4 2 3 2 5 4 1 5 2 4 1 2 4 1 3 2 1 3 2 5 4 1 6 1 3 3 3 4 6 1 1 5 1 5 1 2 4 64 4 2 2 4 3 1 2 4 3 1 6 4 5 5 5 2 2 2 3 1 5 5 3 1 6 5 3 4 4 3 2 4 5 6 6 6 4 6 66 1 1 6 5 1 3 1 3 3 1 4 2 4 4 5 6 3 5 1 4 3 4 3 5 5 4 6 5 3 4 4 2 5 6 1 4 3 1 21 4 2 5 4 3 1 1 1 3 5 1 1 3 4 4 3 6 3 4 5 4 2 4 1 1 1 1 5 6 1 2 2 4 3 6 6 6 1 15 5 1 5 4 4 4 4 2 5 4 4 1 6 2 2 5 4 4 3 5 5 6 6 1 5 1 5 2 4 2 4 6 2 3 2 2 6 3 11 1 2 2 1 5 1 5 1 3 6 5 5 1 6 6 5 2 4 6 5 4 5 1 5 6 6 6 4 4 3 1 1 6 6 1 4 6 1 61 4 2 6 5 4 6 6 4 4 5 1 1 5 2 2 3 5 4 4 1 5 2 1 3 1 5 1 4 6 4 6 1 1 6 4 5 6 2 41 4 6 4 1 3 5 3 3 1 6 2 4 1 2 4 6 6 3 5 6 2 2 5 5 4 2 4 6 4 4 2 1 6 6 6 6 4 3 63 4 3 4 4 1 2 6 4 6 6 6 4 5 2 6 1 4 5 3 6 1 4 4Defence: Erik Mortis BrookshireCount of Monty CriscoCommoner of AlexandrettaHeir to the Line of Metzler/Mortis/RaynorBig Cheese of Rrakanychan Inc.Shirerithian ElderGeneral in the YAC

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: James! I GOT RANDOM!

Post by Erik Mortis »

If we ignore all the yelling about math... we have a count...C Perl\eg\risk>perl roll.plAttacking Units5Defending Units5Use of uninitialized value in addition (+) at roll.pl line 56, line 2.Use of uninitialized value in addition (+) at roll.pl line 56, line 2.Use of uninitialized value in addition (+) at roll.pl line 56, line 2.Use of uninitialized value in addition (+) at roll.pl line 56, line 2.Use of uninitialized value in addition (+) at roll.pl line 56, line 2.Use of uninitialized value in addition (+) at roll.pl line 56, line 2.Attack: 2 6 6 3 5Defence: 2 2 1 1 1Attack Hash: 6 2 3 1 2 1 5 1Defence Hash: 1 3 2 2which means... "Attack Hash: 6 2 3 1 2 1 5 1" = two 6's, one 3, one 2, one 5"Defence Hash: 1 3 2 2" = three 1's, two 2's....Or.. the defender got it's ASSS kicked.. Erik Mortis BrookshireCount of Monty CriscoCommoner of AlexandrettaHeir to the Line of Metzler/Mortis/RaynorBig Cheese of Rrakanychan Inc.Shirerithian ElderGeneral in the YAC

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: James! I GOT RANDOM!

Post by Erik Mortis »

C Perl\eg\risk>perl roll.plAttacking Units5Defending Units6Attack: 5 1 3 2 4Defence: 6 3 3 6 1 2Attack Hash: 6 0 1 1 4 1 3 1 2 1 5 11 = 1,2 = 1,3 = 1,4 = 1,5 = 1,6 = 0,Defence Hash: 6 2 1 1 4 0 3 2 2 1 5 01 = 1,2 = 1,3 = 2,4 = 0,5 = 0,6 = 2,woot... but still messy.... Erik Mortis BrookshireCount of Monty CriscoCommoner of AlexandrettaHeir to the Line of Metzler/Mortis/RaynorBig Cheese of Rrakanychan Inc.Shirerithian ElderGeneral in the YAC

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: James! I GOT RANDOM!

Post by Erik Mortis »

I WIN!C:\Perl\eg\risk>perl roll.plAttacking Units563Defending Units453Final Count Attacks:1 = 952 = 853 = 1074 = 745 = 916 = 111Final Count Defenders:1 = 732 = 653 = 624 = 795 = 946 = 80 Erik Mortis BrookshireCount of Monty CriscoCommoner of AlexandrettaHeir to the Line of Metzler/Mortis/RaynorBig Cheese of Rrakanychan Inc.Shirerithian ElderGeneral in the YAC

Shasta Rana Wanderlust
Posts: 339
Joined: Fri Feb 20, 2004 2:11 pm

Re: James! I GOT RANDOM!

Post by Shasta Rana Wanderlust »

Rock on. Revolution Radio: Estimating the airspeed velocity of unladen swallows one feather at a time.Revolution Theatre: Finding your Antediluvians and providing humor for less than a week.

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: James! I GOT RANDOM!

Post by Erik Mortis »

I rolled over 1million times for both.. it was funny... especially when I have it print the numbers I roll as it rolls them...hehe Erik Mortis BrookshireCount of Monty CriscoCommoner of AlexandrettaHeir to the Line of Metzler/Mortis/RaynorBig Cheese of Rrakanychan Inc.Shirerithian ElderGeneral in the YAC

Locked

Return to “Fiefdom Archive - Brookshire”

Who is online

Users browsing this forum: No registered users and 8 guests