• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
pablo Avatar
Name:Pablo Santa Cruz
Clan:Roshka
Member Since:Feb 2014
Last Seen:Aug 2024
Profiles:
Following:17
Followers:17
Allies:17
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (72)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Just4FunCoder
    • resolved an issue on "Generala - Dice Game" kata
    • 5 months ago

    Enabled in this fork

  • Custom User Avatar
    • ejini战神
    • resolved a question on "Generala - Dice Game" kata
    • 6 months ago

    You should not generate your own input unless you are testing and debugging your code. Since you place the input generation function within the given function signature, it overrides the inputs given by tests, though your solution is correct.

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Generala - Dice Game" kata
    • 6 months ago

    kata hint != kata suggestion

  • Custom User Avatar
    • code893
    • created a question for "Generala - Dice Game" kata
    • 6 months ago

    I can't lie I let mine run 500 times, the amount of zeros I see are murder. Is that normal?

  • Custom User Avatar
    • code893
    • created a suggestion for "Generala - Dice Game" kata
    • 6 months ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • ejini战神
    • resolved a question on "Generala - Dice Game" kata
    • 2 years ago

    OP solved it, closing

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Generala - Dice Game" kata
    • 2 years ago
  • Custom User Avatar
    • Alexandre888
    • commented on "Generala - Dice Game" kata
    • 3 years ago

    A little hint concerning "STRAIGHT":

    1. The numbers in the string must be sorted in ascending order
      For example, 34561 => 13456

    2. If there is no 2 in the string, 1 must be the number 7. This is necessary to make an arithmetic progression.
      For example, 13456 => 34567 (1 => 7).
      If you get an arithmetic progression from the end string, then the string can be designated as STRAIGHT.

    3. If the string has 2 and 1, you just have to check if the numbers in the string make an arithmetic progression

    4. If there is no 1 in the string, you have to do the same thing as 3.

  • Custom User Avatar
    • Chrono79
    • commented on "Generala - Dice Game" kata
    • 3 years ago

    Five consecutive numbers, in any order, 1 could be seen as 1 or 7.

  • Custom User Avatar
    • TumFly
    • created a question for "Generala - Dice Game" kata
    • 3 years ago

    Do not really understand a straight condition. Can someone help me?

  • Custom User Avatar
    • Chrono79
    • resolved an issue on "Generala - Dice Game" kata
    • 3 years ago

    Clarified how to use the wildcard.

  • Custom User Avatar
    • Chrono79
    • commented on "Generala - Dice Game" kata
    • 3 years ago

    The 1 as a wildcard is already in the STRAIGHT item description, it's not a wildcard for any other result. And 44441 is a POKER, it's already in the description ;)

  • Custom User Avatar
    • BitemNet
    • created an issue for "Generala - Dice Game" kata
    • 3 years ago

    I solved this kata according to your comment, but in my opinion 12341 and 13451 match the STRAIGHT description.
    It would also be nice to add that the wildcard 1 rule only applies to STRAIGHT, because what about the case of 44441? This is not GENERALA 😉

  • Custom User Avatar
    • tsp888
    • commented on "Generala - Dice Game" kata
    • 4 years ago

    Damn that straight condition is straight up fcked up.

  • Custom User Avatar
    • Chrono79
    • commented on "Generala - Dice Game" kata
    • 4 years ago

    Because in 13654 the straight is 34561

    Dice with value 1 is a wildcard that can be used at the beginning of the straight, or at the end of it.

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...