Hey guys,
I'm new to the world of PHP and I've been trying to write a script that should be easy but I suck at writing code from the ground up. Basically it's a game of flip a coin that the users in my MySQL database can play together.
The rules of the game are as follows.
The game starts with the option to pick heads or tails. Once the first player picks the next player is forced to pick the opposite option of the last player making the "Heads" and "Tails" values equal. Then the next player is allowed to pick Heads or Tails and so on. I'd also like to display the choice the player made on the page (IE. user "Mario" picked heads, user "Luigi" picked tails). I'd like the game to be on a 24 hour timer and when the timer ends no more flips will be allowed and the winning team is decided.
I already have the actual coin flipping randomizing script in place, I just can't manage to write a script for the rest of it. Can anybody slap something like this together real fast? Let me know if you need anymore info.