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

Function checkBottom

assets/js/Match_Four_Game.js:26–34  ·  view source on GitHub ↗
(colIndex)

Source from the content-addressed store, hash-verified

24
25// Take in column index, returns the bottom row that is still white
26function checkBottom(colIndex) {
27 var colorReport = returnColor(5,colIndex);
28 for (var row = 5; row > -1; row--) {
29 colorReport = returnColor(row,colIndex);
30 if (colorReport === 'rgb(255, 255, 255)') {
31 return row
32 }
33 }
34}
35
36// Check to see if 4 inputs are of the same color or not
37function colorMatchCheck(one,two,three,four){

Callers 1

Match_Four_Game.jsFile · 0.85

Calls 1

returnColorFunction · 0.85

Tested by

no test coverage detected