Execution sample

Example of a program written on FORTHified.

Guessing game

I quickly developed the famous "guessing game". The principle is that the computer choose a random number within an interval (1 to 2000 inclusive in the present case), and the user (you) must guess it in a determined number of attempts. Of course, at each attempt the computer tells you whether the number you entered was too big or too small.

"Guess a number" game

You can download my FORTH guessing game, and have a try with FORTHified.

Output

Here is a typical FORTHified session of the "guessing game":

FORTHified v 0.1
Copyright (c) 2003-2004 Michael Facquet
Original design by Bill Stoddart and Frank Zeyda

LOAD game.4th  ok
GAME
Guess a number between 1 and 2000 in less than 10 tries
1000 is too big
300 is too small
467 is too small
590 is too small
650 is too small
845 is too big
800 is too big
730 is too small
769 is too big
754 is too small
Looser! The number to guess was 768
ok

Stay tuned!
What others think

«I've just discovered your gUSB winamp plugin which I think is brilliant. Does exactly what I need: lets me add music to my MP3 player straight from winamp.»

Douglas E.