Git Product home page Git Product logo

iokk's Introduction

International Obfuscated Kotlin Contest

Do you have a coworker who writes the most incomprehensible Kotlin code you've ever seen? Have you inherited such an utter mess of a codebase that it deserves its very own Wikipedia article? Then this repository is for you!

The aim of this contest is to pass the tests for each challenge, by writing the most convoluted Kotlin programs possible.

An example

For example, consider this innocent Hello World program:

println("Hello World")

Wouldn't you have more job security if all your pull requests looked more like this?

val `_^`: Byte = 27
val `)`: Byte = (11.1 * 10).toByte()
val WAT = byteArrayOf(72, 101, 54 * 2, (`_^` * 4).toByte(),
    `)`, 44, 32, 87, `)`, 114, 27 * 4, 100, 33)
println(String(WAT))

Obviously, that is just an example. Real submissions should be much, much more incomprehensible.

Previous Challenges

Challenge 01: Hello World

Current Challenge

Fork the repository, read the current challenge, and pass the tests with your obfuscated code.

When you're happy with your solution, open a PR with a copy of the file, with your GitHub username as a suffix for the file, class, and method names. For example, n01HelloWorld would become n01HelloWorld_<username>.

Please document how your monstrosity works using KDoc. An example of a submission is shown here.

Judging

After around a month has passed, submissions will be closed, and the top entries will make it into the Hall of Infamy.

Points will be given for:

  • Degree of incomprehensibility, measured in WTFs/min
  • Abuse of language features specific to Kotlin, such as extension functions and operator overloads
  • Originality and other clever hacks

After judging, the next challenge will then be opened for submissions. Stay tuned by watching the GitHub repository, as a new release will be used to notify everyone.

Improving the contest

Open an issue if you have a suggestion for a new challenge, or think the contest could be better by changing something.

It's early days and I'm open to ideas.

Hall of Infamy

Challenge 01

Hello World

iokk's People

Contributors

fractalwrench avatar naaate avatar swankjesse avatar westonal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.