Skip to content

"Brevity is the soul of great code"—Shakespeare (pretty sure). Code Golf challenges, starting at 256 characters.

Notifications You must be signed in to change notification settings

noops-challenge/golfbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 

Repository files navigation

Meet Golfbot

👋 Meet Golfbot

"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.

⛳️ What can you do?

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:

10print preview

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.

How Golfbot works

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.

Choose a challenge

10print

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)

Hexcode

Create a hexcode generator that would (eventually) emit all 16,777,216 hexcodes in less than 256 characters. (entries)

Conway's Game of Life

Write an implementation of Conway's Life in the fewest characters possible. (entries)

Roman Numerals

Generate a correct set of Roman numerals from 1-3,999 (entries)

String Calculator

Write a program that solves written math problems like "six minus three minus five times nine divided by five plus nine plus two." (entries)

Wordsort

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)

Submit your solution as a Pull Request

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.

✨ A little inspiration

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.

About

"Brevity is the soul of great code"—Shakespeare (pretty sure). Code Golf challenges, starting at 256 characters.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published