Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[QUIZ] Micrrowave Numbers (#118)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Matthew Moss, post: 4554866"] I think the confusion is that I specified input and output to both be integers, but they don't really mean the same thing. Input is always seconds... two minutes is "120", five minutes is "600". Input is NOT the keys you would press. Output is always the keys to press... It would have been clearer, perhaps, if I requested the output as an array such as [1, 2, 0, :cook], or even a string like "120*". When I proposed the problem, I realized that the "*" (cook) button is always part of the output, so I could have the function return an integer and the "*" would be implicit. But this, I think, confused things. So 120 (or "120*") as output means to push, in order, the buttons 1, 2, 0 and *. Which, for a microwave means 1:20, or 80 seconds. Does this clear things up? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[QUIZ] Micrrowave Numbers (#118)
Top