Rebol3 Code Examples
A collection of programming tasks implemented in Rebol
1100 doorsControl flow
2100 prisonersGames
321 gameGames
424 gameGames
59 billion names of God the integerMath
6Abbreviations, automaticString
7Abbreviations, easyString
8Abbreviations, simpleString
9ABC correlationMath
10ABC problemMisc
11ABC wordsString
12Abelian sandpile model/IdentityMath
13Abundant odd numbersMath
14Additive primesMath
15Almost primeMath
16AmbControl flow
17Anagram generatorString
18AnagramsString
19Anagrams/Deranged anagramsString
20Angles (geometric), normalization and conversionMath
21Anti-primesMath
22Append numbers at same position in stringsString
23Archimedean spiralGraphics
24Arithmetic evaluationMath
25Attractive numbersMath
26Audio alarmI/O
27Audio frequency generatorI/O
28Audio overlap loopI/O
29Autogram checkerString
30Babylonian spiralGraphics
31Balanced bracketsString
32Barnsley FernGraphics
33Bifid cipherCrypto / encoding
34Bilinear interpolationGraphics
35BiorhythmsMath
36Bitcoin address validationCrypto / encoding
37Bitmap/Flood fillGraphics
38Bitmap/HistogramGraphics
39Bitmap/Midpoint circle algorithmGraphics
40Bitmap/Read a PPM fileI/O
41Bitmap/Write a PPM fileI/O
42Bitwise IOI/O
43Bitwise operationsMath
44BoidsGraphics
45Box the compassMisc
46Bulls and cowsGames
47Bulls and cows playerGames
48Burrows–Wheeler transformCrypto / encoding
49Caesar cipherCrypto / encoding
50Calendar - for "REAL" programmersMisc
51Camel case and snake caseString
52Card shufflesGames
53Catalan numbersMath
54Catalan numbers/Pascal's triangleMath
55Chinese zodiacMisc
56Color quantization (Median cut)Graphics
57Color quantization (Octree)Graphics
58Conway's Game of LifeGames
59Count the coins/0-1Math
60Create a two-dimensional array at runtimeData structures
61Create an HTML tableString
62CSV data manipulationI/O
63CSV to HTML translationI/O
64CurrencyMath
65Deal cards for FreeCellGames
66Death StarGraphics
67Digital rootMath
68Display a linear combinationMath
69Dragon curveGraphics
70Draw a clock (CLI)Graphics
71Draw a cuboidGraphics
72Draw a pixelGraphics
73Draw a sphereGraphics
74Ethiopian multiplicationMath
75Euler methodMath
76Euler's constant 0.5772...Math
77Evolutionary algorithmMisc
78Exactly three adjacent 3 in listsData structures
79Execute Brain****Misc
80Extend your languageMisc
81FASTA formatI/O
82Fibonacci sequenceMath
83Find prime n such that reversed n is also primeMath
84Find unimplemented tasksMisc
85First-class functions/Use numbers analogouslyControl flow
86Five weekendsMisc
87Fractal treeGraphics
88Fraction reductionMath
89FractranMath
90Gapful numbersMath
91Get system command outputI/O
92Go FishGames
93Gosper's hackMisc
94GreedGames
95GSTrans string conversionString
96Harriss SpiralGraphics
97Hash joinData structures
98Huffman codingCrypto / encoding
99I before E except after CString
100Image noiseGraphics
101Increment loop index within loop bodyControl flow
102Integer overflowMath
103ISBN13 check digitMath
104Jacobsthal numbersMath
105JSON pointerString
106Knapsack problem/0-1Math
107Knapsack problem/BoundedMath
108Knapsack problem/ContinuousMath
109Knapsack problem/UnboundedMath
110Knight's tourGames
111Knuth shuffleData structures
112Largest number divisible by its digitsMath
113Leap yearMisc
114Legendre prime counting functionMath
115Letter frequencyString
116Levenshtein distanceString
117Longest common suffixString
118Look-and-say sequenceMath
119Loops/With multiple rangesControl flow
120Loops/Wrong rangesControl flow
121Ludic numbersMath
122Luhn test of credit card numbersMath
123Lychrel numbersMath
124LZW compressionCrypto / encoding
125Mandelbrot setGraphics
126Mayan numeralsMisc
127Maze generationGraphics
128Minimum primesMath
129Morse codeCrypto / encoding
130MultitonMisc
131Nim gameGames
132Numbers divisible by their individual digits, but not by the product of their digitsMath
133Object serializationI/O
134Ordered wordsString
135Padovan n-step number sequencesMath
136Pairs with common factorsMath
137Palindrome detectionString
138Palindromic gapful numbersMath
139Parsing/Shunting-yard algorithmData structures
140PentagramGraphics
141Permutation testMath
142Pick random elementMisc
143PiprimesMath
144Playing cardsGames
145Poker hand analyserGames
146Polynomial regressionMath
147PolyspiralGraphics
148Pythagoras treeGraphics
149QuineMisc
150Read a configuration fileI/O
151Recaman's sequenceMath
152Reduced row echelon formMath
153Rock-paper-scissorsGames
154Rosetta Code/Rank languages by popularityMisc
155Rosetta_Code/Count_examplesMisc
156RPG attributes generatorGames
157Sattolo cycleData structures
158Self-describing numbersMath
159SemordnilapString
160SHA-256 Merkle treeCrypto / encoding
161Show ASCII tableMisc
162Show the epochMisc
163Sierpinski carpetGraphics
164Sierpinski triangleGraphics
165Sieve of EratosthenesMath
166Sieve of PritchardMath
167Sleeping Beauty problemMisc
168Soloway's recurring rainfallMath
169Sort a list of object identifiersData structures
170Sort stabilityData structures
171Sorting algorithms/Bubble sortData structures
172Sorting algorithms/Comb sortData structures
173Sorting algorithms/Counting sortData structures
174Sorting algorithms/Gnome sortData structures
175Sorting algorithms/Insertion sortData structures
176Sorting algorithms/QuicksortData structures
177Sorting algorithms/Radix sortData structures
178Sorting algorithms/Stooge sortData structures
179SoundexString
180Sparkline in unicodeString
181Spiral matrixMath
182Statistics/Normal_distributionMath
183Stem-and-leaf plotData structures
184Straddling checkerboardCrypto / encoding
185String comparisonString
186Strip a set of characters from a stringString
187Sub-unit squaresMath
188Sudan functionMath
189Temperature conversionMath
190Terminal control/Restricted width positional input/No wrappingI/O
191Ternary logicMath
192The Twelve Days of ChristmasMisc
193Time a functionI/O
194Transliterate English text using the Greek alphabetString
195Truncate a fileI/O
196URL decodingI/O
197URL encodingI/O
198Validate International Securities Identification NumberMath
199VectorData structures
200Vector productsMath
201Vigenère cipherCrypto / encoding
202Walk a directory/Non-recursivelyI/O
203Walk a directory/RecursivelyI/O
204War card gameGames
205Wave function collapseGraphics
206Word frequencyString
207Word wheelGames
208WordiffString
209Wordle comparisonGames
210Write language name in 3D ASCIIGraphics
211XXXX redactedString
212Zig-zag matrixMath