MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / verticalWinCheck

Function verticalWinCheck

assets/js/Match_Four_Game.js:56–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55//Vertical Wins
56function verticalWinCheck() {
57 for (var col = 0; col < 7; col++) {
58 for (var row = 0; row < 3; row++) {
59 if (colorMatchCheck(returnColor(row,col), returnColor(row+1,col) ,returnColor(row+2,col), returnColor(row+3,col))) {
60 reportWin(row,col);
61 return true;
62 }else {
63 continue;
64 }
65 }
66 }
67}
68
69//Diagonal Wins
70function diagonalWinCheck() {

Callers 1

Match_Four_Game.jsFile · 0.85

Calls 3

colorMatchCheckFunction · 0.85
returnColorFunction · 0.85
reportWinFunction · 0.85

Tested by

no test coverage detected