Commit Graph

76 Commits

Author SHA1 Message Date
Juergen Stuber
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
Juergen Stuber
292ebed18d Fix colors and digit position wrt duality in dual maze. 2018-12-02 16:07:58 +01:00
Juergen Stuber
c4d45a9016 Draw time of day in the mazes. 2018-12-02 15:57:24 +01:00
Juergen Stuber
4c5d693dfd Display priorities. 2018-12-02 15:56:26 +01:00
Juergen Stuber
00e5e4fcf8 Add some more colors. 2018-12-02 15:54:39 +01:00
Juergen Stuber
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
Juergen Stuber
85ff8c6c62 Adapt methods from dual maze to original maze. 2018-12-02 14:39:59 +01:00
Juergen Stuber
045f03374d Change priorities so that higher numbers have higher priority. 2018-12-02 14:39:04 +01:00
Juergen Stuber
af5e1db20a Replace macros for 2d literals by functions. 2018-12-02 14:21:59 +01:00
Juergen Stuber
9877915249 Allow gradual priorities for horizontal or vertical structures. 2018-12-02 10:26:24 +01:00
Juergen Stuber
b73101be65 Add dual maze.
Builds walls instead of corridors.
2018-12-01 20:09:00 +01:00
Juergen Stuber
3761bcfccf Use neighbours method in predator and prey. 2018-12-01 14:41:19 +01:00
Juergen Stuber
6009f627ae Fix predator and prey so that growth is again possible. 2018-12-01 14:40:50 +01:00
Juergen Stuber
4393f700bc Abstract out board in predator and prey. 2018-12-01 14:29:06 +01:00
Juergen Stuber
1a1129d343 Abstract out rectangles. 2018-12-01 11:49:45 +01:00
Juergen Stuber
de52bca34e Use 2d stuff in predator & prey animation. 2018-12-01 10:04:23 +01:00
Juergen Stuber
3389551f05 Rename everything from suffix 2 to 2d for clarity. 2018-12-01 10:03:58 +01:00
Juergen Stuber
c3ca8888fd Factor out two-dimensional arithmetic from maze. 2018-11-30 22:15:25 +01:00
Juergen Stuber
610c864cd9 Factor out color handling into common module. 2018-11-30 20:34:08 +01:00
Juergen Stuber
e15ac35f18 Darken the blue. 2018-11-28 22:11:14 +01:00
Juergen Stuber
742184580e Make walls blue again. 2018-11-28 22:03:40 +01:00
Juergen Stuber
e90e8072c3 Use darker brown for walls. 2018-11-28 19:00:02 +01:00
Juergen Stuber
e43b0271a9 Try different brown. 2018-11-28 18:57:09 +01:00
Juergen Stuber
354a0cf4b2 Color walls brown. 2018-11-28 18:54:10 +01:00
Juergen Stuber
793fc69e1e Start drawing the maze immediately to avoid flicker. 2018-11-28 18:24:51 +01:00
Juergen Stuber
759c9c4f8a Initial commit. 2018-11-28 16:02:33 +01:00