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
This is a blog about Rebol, it's a fantastic free programming language, it permits easily to create complete software with few lines of code. It's cross-platform, so if you write it on Windows, it will work on Linux and Mac, and vice-versa. You can produce also wonderful GUI with just 3 lines of code!
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) :
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment