Wednesday 29 May 2013

One liner: chess board

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 50x50   style w b white space 0x0   ]
loop 8 append g head reverse/part [b w b w b w b w return] 8 ]
view layout g



No comments:

Post a Comment