Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\m/ #1

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

\m/ #1

Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
@@ -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;
})();
})();