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

Function horizontalWinCheck

assets/js/Match_Four_Game.js:42–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41// Horizontal Wins
42function horizontalWinCheck() {
43 for (var row = 0; row < 6; row++) {
44 for (var col = 0; col < 4; col++) {
45 if (colorMatchCheck(returnColor(row,col), returnColor(row,col+1) ,returnColor(row,col+2), returnColor(row,col+3))) {
46 reportWin(row,col);
47 return true;
48 }else {
49 continue;
50 }
51 }
52 }
53}
54
55//Vertical Wins
56function verticalWinCheck() {

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