rushhour

Name

Build Status

Notes

I used a similar solution as a Reddit poster - represent the board as a bitfield. The maximum supported board size is 6x6, since the borders are all set to 1 to make collision detection easier. Car orientation is set in the low-order bits (which are usually for the border).

Confession: This was originally written in Ruby and then converted to Crystal.

Source

https://www.reddit.com/r/dailyprogrammer/comments/56bh88

Repository

rushhour

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • over 7 years ago
  • December 2, 2016
License

Links
Synced at

Fri, 17 May 2024 16:06:51 GMT

Languages