• 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
rainrain Avatar
Name:AteProgrammer
Clan:SLU
Member Since:Jan 2017
Last Seen:Jun 2018
Profiles:
    Following:92
    Followers:92
    Allies:92
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (6)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • iwillcodeyouhard
      • commented on "Two fighters, one winner." java solution
      • 4 years ago

      @dinglemouse it is really nice solution to this Kata. I've come up with 70 lines of code comparing to yours 10

    • Custom User Avatar
      • XaeroDegreaz
      • commented on "Two fighters, one winner." java solution
      • 7 years ago

      I feel like this is a really simple solution to the problem, but it doesn't leave much space for logging (admittedly not necessarily a requirement for this kata) each iteration of the fight.

    • Custom User Avatar
      • tolbier
      • commented on "Two fighters, one winner." java solution
      • 8 years ago

      simple, but keep it D.R.Y.

    • Custom User Avatar
      • shilparaop
      • commented on "Two fighters, one winner." java solution
      • 8 years ago

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

    • Custom User Avatar
      • dinglemouse
      • commented on "Two fighters, one winner." java solution
      • 8 years ago

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

    • Custom User Avatar
      • shilparaop
      • commented on "Two fighters, one winner." java solution
      • 8 years ago

      Instead of verifying in each iteration we can do that once after the control comes out of while loop which will decrease the execution time like I did.

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...