Skip to content

Commit

Permalink
matches up to score of 21
Browse files Browse the repository at this point in the history
  • Loading branch information
Arif Shanji committed Sep 29, 2015
1 parent 92f5ecf commit ed02fd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/js/controllers/mainCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ angular.module('kanoevents.controllers')
return false;
}
else {
var message = player.name + ' has just started a game of 11 against ' + opponent.name;
var message = player.name + ' has just started a game of 21 against ' + opponent.name;
var payload = {
text: message
};
Expand Down Expand Up @@ -109,11 +109,11 @@ angular.module('kanoevents.controllers')
function getWinner (player, opponent) {
var message;

if (player.score === 11) {
if (player.score === 21) {
message = player.name + ' has just won the game against ' + opponent.name;
}

else if (opponent.score === 11) {
else if (opponent.score === 21) {
message = opponent.name + ' has just won the game against ' + player.name;
}

Expand Down

0 comments on commit ed02fd5

Please sign in to comment.