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.
Oh!! Nice trick hahaha, I will try that out! Thank you!
Edit: Alright, with that trick I will be able to debug my code, thanks.
Edit2: I finally did it!! It was a small rule with straight hands that I wasn't fulfilling. Thanks for your help, that trick allowed me to test one by one and to debug my code.
Thank you very much, but it keeps showing me this:
Expected: true
Actual: false
And not the case being tested in the random part :( Do I have to wait?
Alright, no problem. First of all if you want to concat two char arrays, you need to use strcat, you will have to
#include <string>
too.Here you go:
Oh, thank you very much!! :D
C++ translation of what you need (you will need
#include <iostream>
in case you haven't got it):(There is no need for curly brackets as it is only one instruction per if else statement.)
Both player and opponent must be either "char *" or "std::string".
I would appreciate a lot if you could edit the kata, thank you for your time!
No problem, thanks for the reply anyways.
Yeah, I've noticed that the cases being tested are not displayed in C++ (but I managed to pass the sample tests reading poker rules and hand rankings thoroughly over the internet), they do in other languages, though. Is there any way for me to see the random tests? By private message or something like that (to build an unit test on my own). I believe it is safe to say that the tests are common in every language, am I wrong? If they are not I will go and ask those guys, because I really want to complete this kata :D
Thanks for answering!
C++ :D
I am no Poker expert, but I have read and I have implemented every rule of poker and I think my hand ranking system is fine, but some cases in the random part don't pass with my code.
I have followed the wikipedia article linked in the kata, and the list of poker hands in the lower part of that page.
How can I know which random case is failing? Just to fix that poker rule I am not fulfilling. The only info I get is:
random_compare_poker_hands
should_pass_all_the_tests_provided
Expected: true
Actual: false
Thanks in advance.