Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Thank you for the clarification. I did misinterpret your statement and have taken your suggestion on board for the enum values. :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thank you for your feedback.
One of the reasons why I have not represented the states of the three lights as an enum is because that would not translate well to the actual hardware. In the traffic light hardware there is a high powered 150W bulb for each light. Heach bulb is held in a buld holder. Each bulb holder is switched on by the contacts for the high current side of a mechanical relay. The solenoid of each relay is powered by a low current circuit which is turned on by a transistor. The transisitor is turned on by a very low current supplied to its base pin. So each light needs an
on
oroff
state. An Enum does not translate well to the "electronic" interface, but threeboolean
states do.I will reword the decription to better describe this.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Is there a .Net unit test equivelent of the Test.Inspect(object) in the JavaScript test framework?
This comment is hidden because it contains spoiler information about the solution
Damn damn damn. I need to learn to read it over and over until it sticks in! Thanks!
This comment is hidden because it contains spoiler information about the solution
B**ger! No I haven't thank you! :)
Awesome, example tests now pass. If only I could read! ;)
Now just need to get the main tests to pass.
This comment is hidden because it contains spoiler information about the solution
Aha. Fairplay. I did get round it in the end. Fantastic kata. Really enjoyed it.
This comment is hidden because it contains spoiler information about the solution
Loading more items...