Suggest the modifier: random hedgehog order

2 replies [Last post]
Blackflame
User offline. Last seen 10 years 9 weeks ago. Offline
Joined: 2011-08-09
Posts: 17

The order of teams is usually different from the room order; why don't to make the same for hedgehogs inside teams? For example, given a team of 8 hedgehogs, let n of them are invited to play. I offer a modifier which randomly selects n elements from the set {1,2,...,8} and makes a random permutation of the selected elements, for the given team. The hedgehogs are placed on the map according to the selected elements, the order is set according to the chosen permutation. So, the player does not know the order of his hedgehogs until (n-1) of them make moves. To avoid haxing, when a player types something like "1boo", the hedgehog 1 is speaking regardless of the team permutation.

sheepluva
sheepluva's picture
User offline. Last seen 21 weeks 5 days ago. Offline
Joined: 2009-07-18
Posts: 563

I like the idea of such a modifier Smile

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

nemo
nemo's picture
User offline. Last seen 19 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Not too hard to implement I guess.
Just shuffle the hog array, and keep track of the original order in another array for purposes of speech.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]