"Brevity is the soul of great code"—Shakespeare (pretty sure).
Ever tried code golf? The game is to use as few characters as possible to do as much as possible.
We're starting out easy with 256 characters—and in the final week, we're dropping it down to 128 characters.
Start practicing your putting, and share your entry with other challengers to see if they can make it even shorter.
Well, anything—and very little.
Looking for inspiration? 10Print is a lovely little program that's just 38 characters long but generates infinite possibilities.
Here's the code in Commodore 64 BASIC:
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
When you run the code (on a Commodore 64), it prints a little maze on screen, like this:
We love this program so much we've incorporated it into the design of Meet the Noops: go here for a full, animated version of 10print, written in JavaScript.
There's no API for this challenge, and we're going to try something a little different. We're inviting you to submit solutions to the challenges as pull requests.
Implement 10print in the language of your choice, in less than 256 characters. Running the program in the terminal or console should yield the pattern. (entries)
Create a hexcode generator that would (eventually) emit all 16,777,216 hexcodes in less than 256 characters. (entries)
Write an implementation of Conway's Life in the fewest characters possible. (entries)
Generate a correct set of Roman numerals from 1-3,999 (entries)
Write a program that solves written math problems like "six minus three minus five times nine divided by five plus nine plus two." (entries)
Given a set of words, return an array with two values: number of consonants and number of vowels. Looking for more of a challenge? Find the syllables, words within a word, or sort a set of words by number of unique characters. (entries)
In the repo we have a challenges folder, each with subfolders named after the challenges.
For your pull request, create a new folder with your GitHub username, like so: /challenges/10print/entries/{github-username}
Add your code, a README, and a screenshot of the code.
If Golfbot likes it, we'll merge it into master.
We'll add more challenges over time.
If you have an idea for a challenge, please add an issue.
There are active communities dedicated to Code Golf, like Dwitter (demos less than 140 characters), codegolf.stackexchange.com, and r/codegolf. Browse through the posts to see the very clever, and very concise, things you're able to do when dealing with extreme constraints.
More about Golfbot at noopschallenge.com.