In an effort to understand this new (and very interesting) language, I decided to try something simple; I created a simple guessing game where the computer picks a number between 1 and 100.
Simply yes? Yea, right! :) For whatevcr reason: newbie, stupidity, or that my computer just plain hates me, I can't get the silly thing to work. Here is the script: REBOL [ Title: "Guess a number between 1 and 100" Date: 05/11/2002 Version: 0 Author: "Ed Dana" Purpose: "An excersize in REBOLion." Comment: "Just goofing off." Category: [game] ] pick: random/seed 100.0 guess: ask {What is your guess? } while [pick <> guess] [ if [pick < guess] [ print "To low" ] if [pick > guess] [ print "To high" ] guess: input ] print pick And the results I get: >> do %guess.r What is your guess? ** Script Error: trim expected series argument of type: series port ** Where: ask ** Near: trim either hide [input/hide] [input] What is it talking about? I haven't a clue. I've even tried using Guess: Input and it defines Guess as 1. Any advice is appreciated, including types on suicide so that I may hide my shame from such a simple newbie mistake. :) -- Sincerely, | Ed Dana | Reserve your right to think, for even to think Software Developer | wrongly is better than not to think at all. 1Ghz Athlon Amiga | -- Hypatia of Alexandria. =========== http://members.cox.net/edanaii/Home/Default.html =========== -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.