Skip to content

Instantly share code, notes, and snippets.

@joshuacrowley
Last active August 29, 2015 14:23
Show Gist options
  • Save joshuacrowley/6bf705687293862bb85c to your computer and use it in GitHub Desktop.
Save joshuacrowley/6bf705687293862bb85c to your computer and use it in GitHub Desktop.
// https://www.dropbox.com/s/dn7d71xifq4ydw0/Screen%20Shot%202015-06-27%20at%204.35.47%20pm.png?dl=0
var allBoardSequences = ["01234 10423 24301 32140 43012", "01234 12340 20413 34021 43102" ..."01234 14302 23410 32041 40123"];
var playersMoveToSquare = 17;
var Boxes = 1,2,3,4,5...25
var tileColour = red;
var red = 1, blue = 2, yellow = 3, green = 4, purple = 5;
if (17 has red possiabilty) then ->
function getBoardContents()
var BoardContents = [*, *, *, *, *],
[4, *, *, *, *],
[*, 2, 5, 1, *],
[*, *, 3, 4, *],
[*, *, *, *, *],
function searchBoardSequences(BoardContents)
var searchAllSequencesResult =
["01234 12403 20341 34012 43120",
"01234 12403 20341 34120 43012",
"01234 10342 23410 34021 42103",
"01234 10342 23401 34120 42013"]
function collapsePossibilities(searchAllSequencesResult){
//something that removes duplicate possibilites
return collapsedSequencesResult;
}
function updateBoxes(collapsedSequencesResult)
forEachResult.updateBoxPossibilities(Boxes){
// var this box = [1,2,3]
// next box = [2,3]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment