Created
September 16, 2018 22:17
-
-
Save Jorger/d4af293c825cdea848f1b2610a97aeac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Saber si todos están conectados... | |
if (globalPipes.length === actualWorld[1].length) { | |
const pipesFinish = numFinalElements.reduce( | |
(a, s) => a + (s[1] !== 0), | |
0 | |
); | |
if (pipesFinish === actualWorld[2].length) { | |
finishLevel = true; | |
modalText(true, "Next Level"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment