correspondence examples

rhoScript Example

The following translation visualisation example is for rhoScript, a new "golfing" language invented by Nicholas Carlini.

Code Golf is all about writing programs which are as short as possible. So one should not be surprised if any attempted English translation of a rhoScript program is much longer than the original.

The Eight Queens Puzzle

The example shown here is a rhoScript program that solves the Eight Queens Puzzle. The question to be answered is: "How many different ways can 8 queens be placed on a chessboard such that none of them attack each other?" (if you don't know much about chess, this means that no two queens are on the same row, column or diagonal).

A brief summary of the solution is as follows:

The Correspondence-Bracketup source code can be seen in the source code of this web page.