Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 1; i <= 9; i++){
- $('#' + i.toString()).onchange(function(){
- if($('#' + i.toString()).val != "-"){
- indexes.push(i.toString());
- var id = i.toString() + $('#' + i.toString()).val;
- socket.emit('move', id);
- disable();
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement