Posts Tagged ‘one line’

One linere: chess board

Wednesday, May 29th, 2013

How to create a chess board with just one line of Rebol (I splitted t in 3 lines for beginers) :
Rebol [
    Title: "Chess board"
    Date: 20-Jul-2003
    File: %oneliner-chess-board.r
    Purpose: "Displays an empty chess board"
    One-liner-length: 126
    Version: 1.0.0
    Author: "Sunanda"  
g:[style b box black 50×50   style w b white space 0×0   ]
loop 8 append g head reverse/part [b w b w b w b w return] 8 ]
view layout g