Login  Register

Re: DMUX4WAY

Posted by WBahn on Apr 15, 2020; 9:54am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/DMUX4WAY-tp4034403p4034413.html

I wouldn't put much credence in those "hints". While some of them might be helpful, I think for the most part it was the authors trying to be cute and get  chuckle. Having said that, this is one of the helpful ones.

Don't make parts with multiple outputs harder than they are. You can always treat each output as it's own, separate problem and simply put the code for each in the same file. You may not end up with an elegant solution, but all that is important is that you end up with a working solution.

Imagine going down a road and you come to a (wait for it...) fork in the road. Your options are to go left or go right. You have a light on your dashboard, call it Light#1, that is OFF if you should go to the left and ON if you should go to the right. After taking the indicated branch you soon come to another (wait for it...) fork in the road. You look at a different light, Light#2 and it is OFF if you should go to the left and ON if you should go to the right (and had you gone the other way at the first fork, you would have done the same thing).

How many different roads, starting from the original starting road, could you end up on based on the possible ON/OFF conditions of these two lights?