[thelist] Refreshing a page when a certain condition occurs (ASP usingJavascript)

Chris W. Parker cparker at swatgear.com
Wed Jun 26 14:58:00 CDT 2002


> -----Original Message-----
> From: Greg Burnison [mailto:gburniso at scratchpad.ca]
> Sent: Sunday, June 23, 2002 6:04 PM
>
> What I'm thinking is that if I create a check value (by
> adding the x & y
> coordinates of all the players) when a player moves.  Then
> every second
> that check value is compared to the current value of all the
> coordinates
> from the database.  If the values are different then I will
> refresh the
> page, otherwise I won't.
>
> Example: two players
> Player 1: 3,5
> Player 2: 6,1
> The check value is now (3+5+6+1)=15.
> If player 1 moves to 3,6 the current value will be
> (3+6+6+1)=16, thus the
> display should refresh.

unless i'm missing something, this logic won't work as you'd expect.

First Move:
Player 1: 3,5
Player 2: 6,1

3+5+6+1 = 15

Second Move:
Player 1: 3,4
Player 2: 6,2

3+4+6+2 = 15

unless your system would never come upon two players moving in such a
way (that would mean, only one player can move per second) then yes that
would probably work. but otherwise it would not.


chris.



More information about the thelist mailing list