This file contains 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
public boolean solve(int col){ | |
if (col == mySize) return true; | |
// try each row until all are tried | |
for(int r=0; r < mySize; r++){ | |
if (myBoard.safeToPlace(r,col)){ | |
myBoard.setQueen(r, col, true); | |
if (solve(col + 1)) { | |
return true; | |
} | |
myBoard.setQueen(r, col, false); |
This file contains 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
"ChangeAlignmentIntent": function(intent, session, response) { | |
SquareSpace.handleAlignment(intent, session).then(function() { | |
return response.tell('Ok, I\'ve made the change'); | |
}).catch(function(err){ | |
return response.tell('I apologize ' + session.user.first_name + ', I had trouble making that change. Please try again'); | |
}); | |
}, |
This file contains 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
ChangeAlignmentIntent {alignment} align everything on the page | |
ChangeAlignmentIntent {alignment} align everything | |
ChangeAlignmentIntent {alignment} everything on the page | |
ChangeAlignmentIntent {alignment} everything | |
ChangeAlignmentIntent move everything equal to the {alignment} | |
ChangeAlignmentIntent move everything to the {alignment} | |
ChangeAlignmentIntent change the alignment equal to {alignment} | |
ChangeAlignmentIntent change the alignment to {alignment} | |
ChangeAlignmentIntent change alignment equal to {alignment} | |
ChangeAlignmentIntent change alignment to {alignment} |
This file contains 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
{ | |
"intents": [ | |
{ | |
"intent": "ChangeAlignmentIntent", | |
"slots": [ | |
{ | |
"name": "alignment", | |
"type": "ALIGNMENT_TYPE" | |
} | |
] |