• 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
Captain_Howdy Avatar
Name:Unknown
Clan:Mesomorphic Ltd
Skills:ruby
Member Since:Apr 2019
Last Seen:Jun 2025
Profiles:
    Following:6
    Followers:6
    Allies:4
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (130)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Captain_Howdy
      • commented on "Dominant array elements" ruby solution
      • 3 months ago

      Thanks, I was quite pleased with this :)

    • Custom User Avatar
      • markthomas
      • commented on "Dominant array elements" ruby solution
      • 3 months ago

      Nice. I was trying to get to this, but ended up settling for something a little more verbose.

    • Custom User Avatar
      • seasidetesting
      • commented on "Playing with cubes II" ruby solution
      • 4 months ago

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

    • Custom User Avatar
      • blarosen95
      • commented on "Playing with cubes II" ruby solution
      • 4 months ago

      I'm not sure this deserves top place for Best Practices: it couples the constructor to an instance method. As it's a constructor, the instance is yet to exist, and this sort of flaunts the purpose of OOP in Ruby.

    • Custom User Avatar
      • Captain_Howdy
      • commented on "Will you survive the zombie onslaught?" kata
      • 8 months ago

      So any survivors know what to put on your gravestone?

    • Custom User Avatar
      • Chrono79
      • commented on "Will you survive the zombie onslaught?" kata
      • 2 years ago

      It might be that the code inside your loop is not executed, so it returns an empty string. Print the input to see why.

    • Custom User Avatar
      • hobovsky
      • commented on "Will you survive the zombie onslaught?" kata
      • 2 years ago

      It might be a bug in your solution.
      Hard to tell.

    • Custom User Avatar
      • nikidim2017
      • commented on "Will you survive the zombie onslaught?" kata
      • 2 years ago

      I've got a trouble: passed all tests, but click "Attempt" andit says the following:

      expected:<[You shot all 0 zombies.]> but was:<[]>
      expected:<You shot [all 20 zombies].> but was:<You shot [20 zombies before being eaten: overwhelmed].>

      What might it be?

    • Custom User Avatar
      • Yunique
      • commented on "Invalid Login - Bug Fixing #11" ruby solution
      • 2 years ago

      It`s not a solution. Since the goal was to remove vulnerabilities, and with this decision they remained

    • Custom User Avatar
      • emanresu2
      • commented on "Will you survive the zombie onslaught?" kata
      • 3 years ago

      (If you run out of ammo at the same time as the remaining zombies reach you, return "You shot X zombies before being eaten: overwhelmed.".)

      that is in the details, i think in the case mentioned you run out for ammo at the same time zobies reach you, since you need to mutiply range by 2 because zombies move 0.5 meters

    • Custom User Avatar
      • emanresu2
      • commented on "Will you survive the zombie onslaught?" kata
      • 3 years ago

      why would you neeed to know exactly how you die by the zombie onslaught?

    • Custom User Avatar
      • Captain_Howdy
      • commented on "+1 Array" ruby solution
      • 4 years ago

      Left in debugging code - bother!

    • Custom User Avatar
      • trashy_incel
      • commented on "Will you survive the zombie onslaught?" kata
      • 4 years ago

      i had simply forgotten about variable hoisting, how embarassing >~< it should be OK now, sorry for the inconvenience

    • Custom User Avatar
      • akar-0
      • commented on "Will you survive the zombie onslaught?" kata
      • 4 years ago

      This works: https://www.codewars.com/kata/52250aca906b0c28f80003a1/discuss#615857431274ac0029ce229c

    • Custom User Avatar
      • farhanaditya
      • commented on "Will you survive the zombie onslaught?" kata
      • 4 years ago

      @trashy_incel you don't have to reset everything. You can simply enclose the backward-compatibility with a try...catch block to prevent it from producing an error.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...