Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Cafe Casita
15
Years of Service
User Offline
Joined: 1st Jun 2011
Location: Eureka, FLA
Posted: 29th Oct 2012 03:37
Hi,

I need a short and sweet code to determine an order of attack for a maximum of 52 characters (Players and Enemies) in a game.

All that it has to be is random. Like shuffling the order of cards dealt from a deck.

It needs to change on each successive turn so that "shooter One" does not always shoot first.

I'm stumped.

Cafe Casita

Cafe Casita says YES
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 29th Oct 2012 07:33
I doubt very much that anyone will just give you what you're asking for without yourself making any effort and producing some code yourself. At least plan something out and try an put something together then maybe we'd be more likely to help you out...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Oct 2012 07:45
Here's a quick shuffle routine I made:



"You're not going crazy. You're going sane in a crazy world!" ~Tick
Cafe Casita
15
Years of Service
User Offline
Joined: 1st Jun 2011
Location: Eureka, FLA
Posted: 30th Oct 2012 10:35
A sincere Thank you to all who bore assistance. I've been at this programming thing for about 1 year. 6 mos I had no internet and a sick PC. I took a course in "Visual Basic" in college back in '96 and though I 4.0'ed the course, I know "Nuthink!!!" about that language. This is a fun and rewarding learning curve and I think I've got a novel if not esotheric and quaint format - lots of flashing lights in the player input panels along with some quizzical twists to the old "six-person line em up, mow em down" genre.
I'm a disabled Vet, and this is just the thing I need to keep my head on straight. Wish me success, and if I make a cool mill selling this "baby" at $9.95 a pop, I'll cut you in for a piece of the action in my next fantasy "the Aloysius Steam Car Company".
Game On. and Bravo Zulu to my Navy Vet Buddies. - It means: Highest Satisfactory, proceed to next assignment.
Rich Cronin
Cafe Casita

Cafe Casita says YES
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 30th Oct 2012 15:43
If you are looking to get in on the commercial market then there is the app market for cell phones and pads/tablets. Have you checked out AppGameKit?

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...

Login to post a reply

Server time is: 2026-07-10 16:21:53
Your offset time is: 2026-07-10 16:21:53