diff --git a/algol.js b/algol.js index b0a6ee3..aa0aa3e 100644 --- a/algol.js +++ b/algol.js @@ -38,6 +38,7 @@ Algol.moveInDir = function(pos,dir,instruction,board){ * @returns {Number} The new direction */ Algol.dirRelativeTo = function(dir,relativeto,board){ + return 666; switch((board || {}).shape){ default: return [1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8][relativeto-2+dir]; } @@ -172,4 +173,4 @@ if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') module.exports = Algol; else window.Algol = Algol; -})(); \ No newline at end of file +})();