Re: An interesting one!!!

From: Date: Wed, 23 Oct 2002 16:29:06 +0000
Subject: Re: An interesting one!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121125@lists.php.net to get a copy of this message
One idea is ... There is 24 hours in one day. So, how about doing some checking to see if the prize had been won before the end of the 24 hour periods. To spread them out. How about, 24 hrs divided by 3 prize = 8 hours. So, here's one idea, if the user get a prize in the first 8 hours, increment the prize count anyway. If there's no prize, then do something about it. Blah blah blah. Then at the near of the 24 hours, if there is less than 3 prizes, then do something about it. I know it is a flawed idea and a flaw logic. But never know, one logic lead to a new idea and so on. Um, for the first 1 hour, you mentioned you don't want all of hte prize to given out in that day. So, perhap a delay of something would help. Who know! "Tim Haynes" <thaynes@shropshirestar.co.uk> wrote in message news:20021023162115.16675.qmail@pb1.pair.com... > Here is a puzzle, infact it is a game that I need to do in PHP, here is the > spec > > 3 prizes to be won every day over a month by clicking on 24 seperate > windows....and thats it > > How could I go about deciding whether a user that clicked on one of the > windows is a winner or not, obviously I wouln't want the prizes to go in the > first hour of the day, so would need to spread it out abit. > > Any ideas would be greatly appreciated????? > > Cheers, > > Tim. > > >

« previous php.general (#121125) next »