Skip to content
/ the-way Public

Browser-based implementation of tile/maze game The Way

License

Notifications You must be signed in to change notification settings

darine/the-way

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Given a pattern of 1,2,4,8 neing N,E,S,W then the bits represent connections in this arrangement:

WSEN

Then a clockwise rotation is:

  1. left-shift <<
  2. AND with the 5th bit (16)
  3. If true, subtract 15 (-16, +1) to get the LSB turned on

And an anti-clockwise rotation is:

  1. AND with 1st bit (1)
  2. zero-fill right-shift >>>
  3. If step 2 is true, add 8 to get the MSB turned on

About

Browser-based implementation of tile/maze game The Way

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages