diff options
Diffstat (limited to 'interactor/index.html')
-rw-r--r-- | interactor/index.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/interactor/index.html b/interactor/index.html index c861c82..21892c7 100644 --- a/interactor/index.html +++ b/interactor/index.html @@ -112,6 +112,7 @@ function stabiliseanims(bd){ } bd=newbd; anims.push([stage,bdcopy(bd)]); + if(checkwin(bd)!=-1)break; } while(stage.length); return anims; } @@ -203,6 +204,9 @@ socket.on("setonturn",function(player){ socket.on("getusermove",function(){ getusermove(); }); +socket.on("win",function(player){ + setstatustext("<b>Player "+(player+1)+" won</b>"); +}); </script> </head> <body onload="init()"> |