Skip to content

Commit c5b9999

Browse files
committed
cleanup
1 parent 7512609 commit c5b9999

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

public/app/gameController.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ function Game($scope, $http, $interval, $routeParams, SessionService, UserServic
1212
return $scope.state.$get({ sessionid: $routeParams.sessionid, gameid: $routeParams.gameid, id: currentstate});
1313
})
1414
GetState.then(function(result){
15-
console.log(result);
1615
$scope.gamestate = $scope.state.state.split('');
17-
console.log("state string: '" + $scope.state.state + "'");
18-
console.log("state array: " + $scope.gamestate);
1916
});
2017
}
2118
$scope.playgame();
@@ -24,10 +21,7 @@ function Game($scope, $http, $interval, $routeParams, SessionService, UserServic
2421
}, 5000);
2522

2623
$scope.move = function(cellid){
27-
console.log("MOVE on cell " + cellid);
2824
$scope.gamestate = $scope.state.state.split('');
29-
console.log("state id: " + $scope.state.id);
30-
console.log("state string: '" + $scope.state.state + "'");
3125
move = ""
3226
if ( $scope.gamestate[cellid] != " " ) {
3327
return;
@@ -36,14 +30,11 @@ function Game($scope, $http, $interval, $routeParams, SessionService, UserServic
3630
$scope.gamestate[cellid] = "X";
3731
$scope.gamestate[0] = "O";
3832
move = "X" + cellid;
39-
console.log(move);
4033
} else {
4134
$scope.gamestate[cellid] = "O";
4235
$scope.gamestate[0] = "X";
4336
move = "O" + cellid;
44-
console.log(move);
4537
}
46-
console.log("new state string: '" + $scope.gamestate.join('') + "'");
4738
PostMove = $http.post(api + 'move/' + $routeParams.sessionid + "/" + $routeParams.gameid + "/" + $routeParams.userid, move);
4839
GetGame = PostMove.then(function(){
4940
return $scope.game.$get({ sessionid: $routeParams.sessionid, id: $routeParams.gameid });

0 commit comments

Comments
 (0)