Right of the way gonna say that doing it on Saturday just because didn’t feel like doing it at all. This task is based on Mondays one and consists of two parts. Task is here, latest solution is here.
So with regular task I came pretty quickly and there is really nothing special comparing with easy one.
(def wire-rules {:s0 {\w :s1, \r :s2} :s1 {\w :s2, \o :s3} :s2 {\b :s3, \r :s0} :s3 {\b :s3, \o :s4, \g :s5} :s4 {\g :exit} :s5 {\o :exit}}) (defn end?
...
Read more