aboutsummaryrefslogtreecommitdiff
path: root/tests/search.js
blob: 4dd165535d17ef1b77af526c30aa4f98bd39dfee (plain)
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));