Start a new Kumite
AllAgda (Beta)BF (Beta)CCFML (Beta)ClojureCOBOL (Beta)CoffeeScriptCommonLisp (Beta)CoqC++CrystalC#D (Beta)DartElixirElm (Beta)Erlang (Beta)Factor (Beta)Forth (Beta)Fortran (Beta)F#GoGroovyHaskellHaxe (Beta)Idris (Beta)JavaJavaScriptJulia (Beta)Kotlinλ Calculus (Beta)LeanLuaNASMNim (Beta)Objective-C (Beta)OCaml (Beta)Pascal (Beta)Perl (Beta)PHPPowerShell (Beta)Prolog (Beta)PureScript (Beta)PythonR (Beta)RacketRaku (Beta)Reason (Beta)RISC-V (Beta)RubyRustScalaShellSolidity (Beta)SQLSwiftTypeScriptVB (Beta)
Show only mine

Kumite (ko͞omiˌtā) is the practice of taking techniques learned from Kata and applying them through the act of freestyle sparring.

You can create a new kumite by providing some initial code and optionally some test cases. From there other warriors can spar with you, by enhancing, refactoring and translating your code. There is no limit to how many warriors you can spar with.

A great use for kumite is to begin an idea for a kata as one. You can collaborate with other code warriors until you have it right, then you can convert it to a kata.

Ad
Ad
Code
Diff
  • def return_hundred():
        kk = 100
        return kk * 100000000000000000000000000000000000000000000000 // 100000000000000000000000000000000000000000000000
    
    • def return_hundred():
    • kk = 100
    • return kk * 10000000000000000000000000000000000000000000000 // 10000000000000000000000000000000000000000000000
    • return kk * 100000000000000000000000000000000000000000000000 // 100000000000000000000000000000000000000000000000
Code
Diff
  • def should_return_1():
        # initialize numbers
        numbers = [1, 2, 3]
    
        for numbers[-1] in [1]:
            # do nothing
            pass
        
        
        return numbers[-1]
    • def should_return_1():
    • return 1
    • # initialize numbers
    • numbers = [1, 2, 3]
    • for numbers[-1] in [1]:
    • # do nothing
    • pass
    • return numbers[-1]
Code
Diff
  • import re
    
    
    def amongus(sus):
        return [list(re.search(re.compile('sus'), sus).span())[0]]
    • amongus = lambda sus: [i for i in range(len(sus) - 2) if sus[i:i + 3].lower() == 'sus']
    • import re
    • def amongus(sus):
    • return [list(re.search(re.compile('sus'), sus).span())[0]]
Code
Diff
  • Something = lambda something, code, here: code + something + here
    I = lambda code, here: code + here
    Want = lambda to, code, here: to + code + here
    
    print(I('C', 'o') + Want('d', 'e', 'w') + Something('r', 'a', 's'))
    • # Something something code here
    • Something = lambda something, code, here: ""
    • # I forked the code
    • I = lambda something, code, here: ""
    • # Now it's a kata
    • Something = lambda something, code, here: code + something + here
    • I = lambda code, here: code + here
    • Want = lambda to, code, here: to + code + here
    • print(I('C', 'o') + Want('d', 'e', 'w') + Something('r', 'a', 's'))