Come and have a go if you think you're hard enough! - http://toastlad.mybrute.com
Teams that will be available are:
France
Germany
Italy
Spain
Argentina
Portugal
England
Brazil
Croatia
Holland
I need to find a way of choosing teams Randomly (hopefully I have a little help on MSN today.)
You will
It would be easy enough to create a little php random routine using the shuffle function. Would be easy enough to shuffle the numbers 1 to 10, then the teams, and the result would be how we play. I'm not sure how I can guarantee to people that I haven't just hit the function until I get the team I want though, so there would have to be an element of trust involved, so as long as everyone is happy .........
OK I've run a draw and the results are in. Random order:
BBK - Brazil
PTM - Germany
Steve - Argentina
Danny - Portugal
Warhead - Italy
Neo - Spain
Muppet - France
Fuse - England (sorry)
For those concerned with the validity, here is the draw screenshot. Yes, it could be faked, but I didn't.
And here is the code:
Code:<?php $shuff_teams=array("France","Germany","Italy","Spain","Argentina","Portugal","England","Brazil"); uasort($shuff_teams, 'scmp' ); print_r($shuff_teams); echo "<p>"; $shuff_players=array("BBK","Muppet","Steve","Neo","Fuse","Warhead","Danny","PTM"); uasort($shuff_players, 'scmp' ); print_r($shuff_players); function scmp( $a, $b ) { return rand(-1,1); } ?>
Argentina! Argentina!
Oddly I don't mind playing with England on FIFA - I do ok with them. Good up front (nned to sub Beckham )
I will try and set this up tonight at half time.
Just for future reference I've upped the file to http://www.skdw.co.uk/fifa/shuffle.php
It can now be run at any time. If we find we are using it a lot I will expand it, add a call to a db so we can always be sure who last ran it, when it was run and how many times its been run, make it totally transparent.
My gamer Tag is PTM76 - feel free to add me guys.
Germany's not bad for a draw - though my fave is Argentina!
bring it on y'all!
Come and have a go if you think you're hard enough! - http://toastlad.mybrute.com
Social Networking Bookmarks