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.
Forgive me if the description was different when you read it, but it says: "He wants to keep his old car until he can buy the secondhand one". (So basically implying he's selling his old car to buy the new one).
Tricky wording (overall) I know. I bashed my head on this one for a lot longer than I thought I would !
Ah ok, just did that. Thanks!
Heya, the testing suite seems to be around the wrong way. Language is C#.
Expected: <string.Empty>
But was: "Player 1 has missed the ball!"
(Expected always shows up as whatever I return as, instead of the other way around).
Seems to be an error with the random tests in C# (or I could be wrong on something). I pass the test suite no problem. Random tests are outputting the correct results for me when I debug to Console. But when I run the test, it always says:
Expected: "Player 1 has missed the ball!"
But was: "Player 2 has won the game!"
The weird thing is, even if I change the "player x has won the game" code to say something completely different, so there's no reference ot that result, it will still output that as the result. (I'm clearing the string / result line each time and it works perfectly in the test suite). The other issue is if I return nothing / "" in the code, it will then say Expected: "", or whatever I change the result / return statement to.
Is something buggy with this or am I missing something?
EDIT: testing the suite with a complete blank statement (the default code), it says:
Expected: <string.Empty>
But was: "Player 1 has missed the ball!"
As if it's around the wrong way somehow?
Awesome Kata. Thanks again for all your hard work.
I'm having a problem with test 4e. (C#)
The previous play(4c), my board looks like this: Player 2, playing at column (2) (the O).
https://pastebin.pl/view/81e6b89c
The next play is Player 1 (X), playing at col 3, which makes a 4 across (Win) for Player 1. However the expected result is "Player 1 has a turn".
I thought it might be because I am clearing the board when someone wins, but I also tried not clearing it - and the same issue occurs in a different way.
Am I missing something? I've tried going through one by one, and all my moves seem to match exactly as per the test cases, right up until 4e.
Thanks!
Once again thanks for the challenge...I love your Katas because they are almost like coding a mini game. Found this one quite tricky but glad I managed to solve it!
Where did you get that array from? There's only one staircase per row.
Really enjoyed this one, thanks!
Damn! Thanks for the challenge. I found this pretty hard, took me quite a long time to do it, mostly due to the fact that it was hard to get the spaces working the way I needed. I'm still a beginner but I'm stoked that I managed to figure it out eventually. Good one!
This was a really cool one (challenging for me in a good way as a beginner)...thanks!