Skip to content

Instantly share code, notes, and snippets.

private String assembleDirections() {
available = new StringBuffer();
nDirections = directions.size();
directionsPlaced = 0;
for (String dir: new String[]{Game.NORTH, Game.SOUTH, Game.EAST, Game.WEST}) {
if (direction.contains(dir)) {
placeDirection(dir);
}
}
}
@xstrengthofonex
xstrengthofonex / 0_reuse_code.js
Created January 6, 2017 15:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console