• Thank you I had not read the end but it exists in poker Texas Hold'em

  • see what instructions have to say about ace

  • I have a problem with this test in C# too :

    Test Failed
    Hole cards: ["A♠", "2♦"]
    Community cards: ["3♣", "4♥", "5♥", "7♥", "8♦"]
    Expected: (type: "nothing", ranks: ["A", "8", "7", "5", "4"])
    Actual: (type: "straight", ranks: ["5", "4", "3", "2", "A"])
    Error: Type is incorrect

    Expected string length 7 but was 8. Strings differ at index 0.
    Expected: "nothing"
    But was: "straight"
    -----------^

  • Yeeey!
    Arigato gozaimasu! 🙏
    It worked now! I'll clenup solution a bit and submit it in the morning.

  • .

  • We'll discuss this further in the comments section of the translation.

  • ah shouldve read moer carefully

  • The specs specifically forbid this case. Aces are considered high cards in a straight. Unless you mean specifically testing that the user follows this rule, in which case: what dfhwze said.

  • Can you retry? Copy your code first, reset the kata, paste it back and test.

  • I'll have a look.

  • In which language?

  • Is there an edge case for the straight where you count the ace as a 1?
    like A 2 3 4 5
    If not I recommend putting one

  • C# tests are incorrect for this kata, so I can't submit my solution :(
    (it's all about straight)

    Hole cards: ["3♠", "4♥"]
    Community cards: ["6♣", "5♠", "2♣", "2♦", "3♦"]
    Expected: (type: "two pair", ranks: ["3", "2", "6"]) - expected wrong result, there is a straight.
    Actual: (type: "straight", ranks: ["6", "5", "4", "3", "2"])

    Hole cards: ["6♣", "10♠"]
    Community cards: ["9♠", "8♦", "5♦", "7♥", "9♦"]
    Expected: (type: "straight", ranks: ["9", "8", "7", "6", "5"]) - expected wrong, lower straight than there actually is.
    Actual: (type: "straight", ranks: ["10", "9", "8", "7", "6"])

    Hole cards: ["2♦", "J♦"]
    Community cards: ["Q♥", "9♠", "K♥", "10♥", "J♥"]
    Expected: (type: "pair", ranks: ["J", "K", "Q", "10"])
    Actual: (type: "straight", ranks: ["K", "Q", "J", "10", "9"])

  • Loading more items...