timer functionality.......need ur help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
We are developing an online fun game called tambola...
The requirement is as follows
Tambola is a game in which each player will get a ticket and the
co-ordinator of the game will pick up numbers from 1 to 99 randomly..
If the picked up number happens to be amongst the numbers being given on the
tciket, then the player marks that numbers in his tciket as completed. The
game ends when any one of the players will have his tciket completely
marked....
In the online tambola, the players are the users of the application and
system is the co-ordinator
of the game...The system should pick up each number randomly after every
10 secs........
Each logged user will have a ticket generated for him..
The system should display the numbers from 1 to 99 after every 10 secs....

Presently, I've used a timer control to display the numbers after every 10
secs...
The problem with the timer control is that, it's causing a postback after
every 10 secs,,, which is a hit on the server..
I want to avoid this hit on the server.. Is there any other to achieve this
functionality in .net without much load on the server

I heard that javascript can help out.. I need some code smaples with similar
functionality..Can anyone help us out
 
There is a setTimeout function in javascript that is sort of like a one-time
timer. I have found this to be an excellent resource on javascript
http://www.devguru.com/technologies/javascript/home.asp, I am sure there are
tons of other examples on the web as well.

As an aside, would anyone want to play this? It's all completely random with
no user interaction required...
 
Back
Top