• 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
benpitman Avatar
Name:Ben Pitman
Clan:Unknown
Member Since:Mar 2019
Last Seen:Mar 2025
Profiles:
Following:9
Followers:15
Allies:9
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored (28)
  • Needs Resolution
  • Custom User Avatar
    • benpitman
    • commented on "Function 1 - hello world" shell solution
    • 2 years ago

    It's a genetic algorithm to build the gene string "hello world"

  • Custom User Avatar
    • benpitman
    • commented on ""Sum of Two Integers " PHP Translation"
    • 5 years ago

    Hey Steffan, I've added "modify" to the list of rejected words. That should resolve it.

  • Custom User Avatar
    • benpitman
    • commented on "Grasshopper - Messi goals function" php solution
    • 5 years ago

    Ha ha. Coding is fun, especially when I get to use OOP. What makes codewars fun is people like yourself interacting with the community. So thank you for that =).

  • Custom User Avatar
    • benpitman
    • commented on "Simple assembler interpreter" php solution
    • 5 years ago

    But why make something simple, when you can make it scalable =P

  • Custom User Avatar
    • benpitman
    • commented on ""Sum of Two Integers " PHP Translation"
    • 5 years ago

    People will always find a way to break something XD. I've edited the test with a new regex which should fix it.

  • Custom User Avatar
    • benpitman
    • commented on "Function 1 - hello world" shell solution
    • 5 years ago

    Well, I don't want to make it too complicated now do I?

  • Custom User Avatar
    • benpitman
    • commented on "Sum Mixed Array" php solution
    • 5 years ago

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

  • Custom User Avatar
    • benpitman
    • commented on ""Balanced Number (Special Numbers Series #1 ) " Shell Translation"
    • 6 years ago

    Well, I'm a HUGE fan of Ruby, so I'll do it myself.

    Cool thanks. I'll have a look at your code to see how you did it for future reference.

    Also, you don't need chomp.

    Good to know =D

  • Custom User Avatar
    • benpitman
    • commented on ""Balanced Number (Special Numbers Series #1 ) " Shell Translation"
    • 6 years ago

    Not gonna lie, I don't know Ruby, so doing these translations are my introduction to rspec, and I'm not a fan. I wouldn't know how to go about making random tests for this.

  • Custom User Avatar
    • benpitman
    • created an issue for "Drying Potatoes" kata
    • 6 years ago

    Shell testing setup allows for cheating.

  • Custom User Avatar
    • benpitman
    • commented on ""Sum of Two Integers " PHP Translation"
    • 6 years ago

    Oh, alright then. Yes the change in the regex is as follows:

    From: "/(?:[^\<\>\=\s\w;]|\$\w+)(?:[\s]*)?\(/"

    To: "/(?:[^\<\>\=\s\w;]|\\$\w+)(?:[\s]*)?\(/"

  • Custom User Avatar
    • benpitman
    • commented on ""Sum of Two Integers " PHP Translation"
    • 6 years ago

    Ah, there was an issue with the regex. It matched on regex101, but I overlooked that you would need to escape the dollar from PHP fiirst and then escape it again from regex, so I've just published the change since it was just adding a backslash into the pattern.

  • Custom User Avatar
    • benpitman
    • commented on ""Sum of Two Integers " PHP Translation"
    • 6 years ago

    Dang, you're absolutely right. Hopefully my latest fork should prevent any further cheating.

  • Custom User Avatar
    • benpitman
    • commented on ""Sum of Two Integers " PHP Translation"
    • 6 years ago

    Ha ha no worries. Thanks for approving. Expect a Shell translation too when I get around to it.

    4Kyu Kata Based on Sum Strings as Numbers

    Oh wow. This should be nice and easy wtih PHP. Thank you XD

  • Custom User Avatar
    • benpitman
    • commented on ""Sum of Two Integers " PHP Translation"
    • 6 years ago

    Yeah that works. I'll implement that now. Thank you.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...