()
| 68 | |
| 69 | //Diagonal Wins |
| 70 | function diagonalWinCheck() { |
| 71 | for (var col = 0; col < 5; col++) { |
| 72 | for (var row = 0; row < 7; row++) { |
| 73 | if (colorMatchCheck(returnColor(row,col), returnColor(row+1,col+1) ,returnColor(row+2,col+2), returnColor(row+3,col+3))) { |
| 74 | reportWin(row,col); |
| 75 | return true; |
| 76 | }else if (colorMatchCheck(returnColor(row,col), returnColor(row-1,col+1) ,returnColor(row-2,col+2), returnColor(row-3,col+3))) { |
| 77 | reportWin(row,col); |
| 78 | return true; |
| 79 | }else { |
| 80 | continue; |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | //End |
| 87 | function gameEnd(winningPlayer) { |
no test coverage detected