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.
Added assertions messages and approved.
Hahaha definitely :]
To be honest I often do not focus on producing the cleanest solution while doing Katas and I was a bit surprised about the harsh remark by the other commenter!
So thanks for chiming in.
I think that "unreadable crap" is a bit harsh, but this seems a little more in the realm of a code golfing solution. While it does get the job done, if you were to come back to this a few weeks later, I think you'd be a little mad at past you for unnecessarily obfuscating your code.
unreadable crap
The description has been updated, the merge conflict should be resolved in a fork.
0
isn't a valid number of drinks according to the new description.Thank you, I took it for granted that it worked in Visual Studio.
Did you forget to include
using System;
statement?Not an issue. Your code is causing this.
I'm having an issue, where it tells me Convert doesn't exist in the current context.
As in:
Convert.ToInt32();
Am I missing something?
There probably are more solutions, but yes that is like how I would do it
Thank you @albertogcmr!!
I didn't know that, I was printing too.
This comment is hidden because it contains spoiler information about the solution
I don't see where you are handling the condition where an order uses AND to join two different types of drinks.Like where it tests for "2 of x and 1 of y".
Kotlin Translation
I just translated the kata to Kotlin and would be happy to see it approved :)
It's my first translation so if I happen to have done something wrong feel free to let me know!