YPetremann / ShenzhenIO

ShenzhenIO Solutions as save folder
25 stars 8 forks source link

Laser tag 6 cost #13

Closed twarmboe closed 7 years ago

twarmboe commented 7 years ago

Solution is: ¥6/219/9

We use a double NOR SR latch instead of an NOT, AND, OR SR latch to reduce cost to ¥6. The problem with this kind of latch is it has an indeterminate initial state so we have to use two @ instructions (strategically placed) so that we correctly initialize as dead on the first cycle. Otherwise it will break on a later test run where one of the other gates gets priority and we start off as alive.

The AND gate is also removed since we can just run an additional test instruction when wiring trigger into the DX300.