1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Tests Search.js, in basic function. let space = new Space(); space.adhoc('jarvis'); let test = new Search(space); let tile = new Space(); tile.adhoc('\ \n\ jarvis \n\ \n\ \n\ \n\ \n\ \n\ \n\ '); console.log(test.add([2,2],tile));