rushhour
Name
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
Repository
rushhour
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- almost 8 years ago
- December 2, 2016
License
Links
Synced at
Sun, 24 Nov 2024 14:03:05 GMT
Languages