Commit Graph

27 Commits

Author SHA1 Message Date
a85d69a36c Add Cargo.lock to repository for reliable build.
If you do cargo update and it no longer works
then it is your fault^H^H^H^H^Hduty to fix things.
2018-12-03 20:21:48 +01:00
e60c0b26eb Use priority queue for next move to make in mazes.
This is the proper data structure to use.
No more of this regularly resorting a vector rubbish.
2018-12-03 20:20:04 +01:00
292ebed18d Fix colors and digit position wrt duality in dual maze. 2018-12-02 16:07:58 +01:00
c4d45a9016 Draw time of day in the mazes. 2018-12-02 15:57:24 +01:00
4c5d693dfd Display priorities. 2018-12-02 15:56:26 +01:00
00e5e4fcf8 Add some more colors. 2018-12-02 15:54:39 +01:00
3158928015 Fix 7 segment order.
Segments for bits 4 and 5 were swapped with respect to the standard order.
2018-12-02 15:54:22 +01:00
85ff8c6c62 Adapt methods from dual maze to original maze. 2018-12-02 14:39:59 +01:00
045f03374d Change priorities so that higher numbers have higher priority. 2018-12-02 14:39:04 +01:00
af5e1db20a Replace macros for 2d literals by functions. 2018-12-02 14:21:59 +01:00
9877915249 Allow gradual priorities for horizontal or vertical structures. 2018-12-02 10:26:24 +01:00
b73101be65 Add dual maze.
Builds walls instead of corridors.
2018-12-01 20:09:00 +01:00
3761bcfccf Use neighbours method in predator and prey. 2018-12-01 14:41:19 +01:00
6009f627ae Fix predator and prey so that growth is again possible. 2018-12-01 14:40:50 +01:00
4393f700bc Abstract out board in predator and prey. 2018-12-01 14:29:06 +01:00
1a1129d343 Abstract out rectangles. 2018-12-01 11:49:45 +01:00
de52bca34e Use 2d stuff in predator & prey animation. 2018-12-01 10:04:23 +01:00
3389551f05 Rename everything from suffix 2 to 2d for clarity. 2018-12-01 10:03:58 +01:00
c3ca8888fd Factor out two-dimensional arithmetic from maze. 2018-11-30 22:15:25 +01:00
610c864cd9 Factor out color handling into common module. 2018-11-30 20:34:08 +01:00
e15ac35f18 Darken the blue. 2018-11-28 22:11:14 +01:00
742184580e Make walls blue again. 2018-11-28 22:03:40 +01:00
e90e8072c3 Use darker brown for walls. 2018-11-28 19:00:02 +01:00
e43b0271a9 Try different brown. 2018-11-28 18:57:09 +01:00
354a0cf4b2 Color walls brown. 2018-11-28 18:54:10 +01:00
793fc69e1e Start drawing the maze immediately to avoid flicker. 2018-11-28 18:24:51 +01:00
759c9c4f8a Initial commit. 2018-11-28 16:02:33 +01:00