Re: [Audyssey] BGT Error: Expected expression value

2010-03-28 Thread Philip Bennefall

Hi Casey,

The following line:

while (guess =number or = number)

is incorrect. I mentioned this in my private reply to you but I don't think 
I explained it very well. The exact same line would be written like this in 
proper code:


while (guess =number or guess= number)

In short, you have to specify the variable to check in both parts of your 
expression.


Kind regards,

Philip Bennefall
- Original Message - 
From: Casey Mathews csm...@cfl.rr.com

To: Gamers Discussion list gamers@audyssey.org
Sent: Friday, March 26, 2010 10:29 PM
Subject: [Audyssey] BGT Error: Expected expression value


Hello. I'm very impressed with BGT. I'm trying to make my own guess the 
number game, just to try and get familiar with the sintax. I can't figure 
out what I'm missing. I've looked at the examples in the tutorial, and 
downloaded all of the examples from the web. The error is below, follloed 
by my simple attempt. Thanks for any help.

Line: 5 (26)
Error: Expected expression value

void main()
{
alert(Number Guesser,Try to guess my number. I'll let you know if 
you're too high, or too low. Make your guesses between numbers 1, and 10. 
Have fun!);

int number=random(1, 10);
while (guess =number or = number)
{
int guess = input_box(Guess,What's your guess?);
if (guess == number)
{
input_box(You Won!,You guessed my number!);
}
else
{
alert(Your Guess,Your guess was +guess+.);
}
}
}

---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to 
gamers-unsubscr...@audyssey.org.

You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the 
list,
please send E-mail to gamers-ow...@audyssey.org. 



---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


Re: [Audyssey] BGT Error: Expected expression value

2010-03-28 Thread Willem
Hi. You should ceparate your conditional statements. I'm also not sure 
you used the correct or (I know some languages use ||), but I don't know 
bgt sintax that well, anyway, try this in your while loop:


while (guess =number or guess = number)
On 3/26/2010 10:29 PM, Casey Mathews wrote:
Hello. I'm very impressed with BGT. I'm trying to make my own guess 
the number game, just to try and get familiar with the sintax. I can't 
figure out what I'm missing. I've looked at the examples in the 
tutorial, and downloaded all of the examples from the web. The error 
is below, follloed by my simple attempt. Thanks for any help.

Line: 5 (26)
Error: Expected expression value

void main()
{
alert(Number Guesser,Try to guess my number. I'll let you know if 
you're too high, or too low. Make your guesses between numbers 1, and 
10. Have fun!);

int number=random(1, 10);
while (guess =number or = number)
{
int guess = input_box(Guess,What's your guess?);
if (guess == number)
{
input_box(You Won!,You guessed my number!);
}
else
{
alert(Your Guess,Your guess was +guess+.);
}
}
}

---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to 
gamers-unsubscr...@audyssey.org.

You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the 
list,

please send E-mail to gamers-ow...@audyssey.org.



---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


Re: [Audyssey] BGT Error: Expected expression value

2010-03-28 Thread Jacob Kruger
Off hand, I think your intro string is too long and shouldn't wrap line to 
line - rather build it bit by bit, and then use it.


Apart from that, you don't seem to have declared, or assigned a value to 
Guess?


Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

- Original Message - 
From: Casey Mathews csm...@cfl.rr.com

To: Gamers Discussion list gamers@audyssey.org
Sent: Friday, March 26, 2010 10:29 PM
Subject: [Audyssey] BGT Error: Expected expression value


Hello. I'm very impressed with BGT. I'm trying to make my own guess the 
number game, just to try and get familiar with the sintax. I can't figure 
out what I'm missing. I've looked at the examples in the tutorial, and 
downloaded all of the examples from the web. The error is below, follloed 
by my simple attempt. Thanks for any help.

Line: 5 (26)
Error: Expected expression value

void main()
{
alert(Number Guesser,Try to guess my number. I'll let you know if 
you're too high, or too low. Make your guesses between numbers 1, and 10. 
Have fun!);

int number=random(1, 10);
while (guess =number or = number)
{
int guess = input_box(Guess,What's your guess?);
if (guess == number)
{
input_box(You Won!,You guessed my number!);
}
else
{
alert(Your Guess,Your guess was +guess+.);
}
}
}

---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to 
gamers-unsubscr...@audyssey.org.

You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the 
list,

please send E-mail to gamers-ow...@audyssey.org.

__ Information from ESET NOD32 Antivirus, version of virus 
signature database 4980 (20100328) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






__ Information from ESET NOD32 Antivirus, version of virus signature 
database 4980 (20100328) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


Re: [Audyssey] BGT Error: Expected expression value

2010-03-28 Thread Casey Mathews
Ahh, that makes sense. It's working now, and I'm just trying some things to 
try and understand it better.

Thanks again.
Thanks

--
From: Philip Bennefall phi...@blastbay.com
Sent: Sunday, March 28, 2010 1:35 PM
To: Gamers Discussion list gamers@audyssey.org
Subject: Re: [Audyssey] BGT Error: Expected expression value


Hi Casey,

The following line:

while (guess =number or = number)

is incorrect. I mentioned this in my private reply to you but I don't 
think I explained it very well. The exact same line would be written like 
this in proper code:


while (guess =number or guess= number)

In short, you have to specify the variable to check in both parts of your 
expression.


Kind regards,

Philip Bennefall
- Original Message - 
From: Casey Mathews csm...@cfl.rr.com

To: Gamers Discussion list gamers@audyssey.org
Sent: Friday, March 26, 2010 10:29 PM
Subject: [Audyssey] BGT Error: Expected expression value


Hello. I'm very impressed with BGT. I'm trying to make my own guess the 
number game, just to try and get familiar with the sintax. I can't figure 
out what I'm missing. I've looked at the examples in the tutorial, and 
downloaded all of the examples from the web. The error is below, follloed 
by my simple attempt. Thanks for any help.

Line: 5 (26)
Error: Expected expression value

void main()
{
alert(Number Guesser,Try to guess my number. I'll let you know if 
you're too high, or too low. Make your guesses between numbers 1, and 10. 
Have fun!);

int number=random(1, 10);
while (guess =number or = number)
{
int guess = input_box(Guess,What's your guess?);
if (guess == number)
{
input_box(You Won!,You guessed my number!);
}
else
{
alert(Your Guess,Your guess was +guess+.);
}
}
}

---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to 
gamers-unsubscr...@audyssey.org.

You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the 
list,

please send E-mail to gamers-ow...@audyssey.org.



---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to 
gamers-unsubscr...@audyssey.org.

You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the 
list,
please send E-mail to gamers-ow...@audyssey.org. 



---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


Re: [Audyssey] BGT Error: Expected expression value

2010-03-28 Thread Hayden Presley
Hi,
Firstly, there rre too many right brace characters. If you make a function,
you need to put a right brace at the end of your main function.
HTH,
Hayden

-Original Message-
From: gamers-boun...@audyssey.org [mailto:gamers-boun...@audyssey.org] On
Behalf Of Jacob Kruger
Sent: Sunday, March 28, 2010 12:56 PM
To: Gamers Discussion list
Subject: Re: [Audyssey] BGT Error: Expected expression value

Off hand, I think your intro string is too long and shouldn't wrap line to 
line - rather build it bit by bit, and then use it.

Apart from that, you don't seem to have declared, or assigned a value to 
Guess?

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

- Original Message - 
From: Casey Mathews csm...@cfl.rr.com
To: Gamers Discussion list gamers@audyssey.org
Sent: Friday, March 26, 2010 10:29 PM
Subject: [Audyssey] BGT Error: Expected expression value


 Hello. I'm very impressed with BGT. I'm trying to make my own guess the 
 number game, just to try and get familiar with the sintax. I can't figure 
 out what I'm missing. I've looked at the examples in the tutorial, and 
 downloaded all of the examples from the web. The error is below, follloed 
 by my simple attempt. Thanks for any help.
 Line: 5 (26)
 Error: Expected expression value

 void main()
 {
 alert(Number Guesser,Try to guess my number. I'll let you know if 
 you're too high, or too low. Make your guesses between numbers 1, and 10. 
 Have fun!);
 int number=random(1, 10);
 while (guess =number or = number)
 {
 int guess = input_box(Guess,What's your guess?);
 if (guess == number)
 {
 input_box(You Won!,You guessed my number!);
 }
 else
 {
 alert(Your Guess,Your guess was +guess+.);
 }
 }
 }

 ---
 Gamers mailing list __ Gamers@audyssey.org
 If you want to leave the list, send E-mail to 
 gamers-unsubscr...@audyssey.org.
 You can make changes or update your subscription via the web, at
 http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
 All messages are archived and can be searched and read at
 http://www.mail-archive.com/gam...@audyssey.org.
 If you have any questions or concerns regarding the management of the 
 list,
 please send E-mail to gamers-ow...@audyssey.org.

 __ Information from ESET NOD32 Antivirus, version of virus 
 signature database 4980 (20100328) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com


 


__ Information from ESET NOD32 Antivirus, version of virus signature
database 4980 (20100328) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to
gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


Re: [Audyssey] BGT Error: Expected expression value

2010-03-28 Thread Hayden Presley
Hmmm. I'm no brilliant programmer and I have not read all of the BGT manual,
but I'm not sure you need a loo there either. Someone correct me if I'm
wrong.
Best Regards,
Hayden

-Original Message-
From: gamers-boun...@audyssey.org [mailto:gamers-boun...@audyssey.org] On
Behalf Of Willem
Sent: Sunday, March 28, 2010 12:35 PM
To: Gamers Discussion list
Subject: Re: [Audyssey] BGT Error: Expected expression value

Hi. You should ceparate your conditional statements. I'm also not sure 
you used the correct or (I know some languages use ||), but I don't know 
bgt sintax that well, anyway, try this in your while loop:

while (guess =number or guess = number)
On 3/26/2010 10:29 PM, Casey Mathews wrote:
 Hello. I'm very impressed with BGT. I'm trying to make my own guess 
 the number game, just to try and get familiar with the sintax. I can't 
 figure out what I'm missing. I've looked at the examples in the 
 tutorial, and downloaded all of the examples from the web. The error 
 is below, follloed by my simple attempt. Thanks for any help.
 Line: 5 (26)
 Error: Expected expression value

 void main()
 {
 alert(Number Guesser,Try to guess my number. I'll let you know if 
 you're too high, or too low. Make your guesses between numbers 1, and 
 10. Have fun!);
 int number=random(1, 10);
 while (guess =number or = number)
 {
 int guess = input_box(Guess,What's your guess?);
 if (guess == number)
 {
 input_box(You Won!,You guessed my number!);
 }
 else
 {
 alert(Your Guess,Your guess was +guess+.);
 }
 }
 }

 ---
 Gamers mailing list __ Gamers@audyssey.org
 If you want to leave the list, send E-mail to 
 gamers-unsubscr...@audyssey.org.
 You can make changes or update your subscription via the web, at
 http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
 All messages are archived and can be searched and read at
 http://www.mail-archive.com/gam...@audyssey.org.
 If you have any questions or concerns regarding the management of the 
 list,
 please send E-mail to gamers-ow...@audyssey.org.


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to
gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


Re: [Audyssey] BGT Error: Expected expression value

2010-03-28 Thread Willem
You do need a loop, if that is what you meant. It loops each time an 
incorrect guess is made to let you guess again.

On 3/28/2010 9:36 PM, Hayden Presley wrote:

Hmmm. I'm no brilliant programmer and I have not read all of the BGT manual,
but I'm not sure you need a loo there either. Someone correct me if I'm
wrong.
Best Regards,
Hayden

-Original Message-
From: gamers-boun...@audyssey.org [mailto:gamers-boun...@audyssey.org] On
Behalf Of Willem
Sent: Sunday, March 28, 2010 12:35 PM
To: Gamers Discussion list
Subject: Re: [Audyssey] BGT Error: Expected expression value

Hi. You should ceparate your conditional statements. I'm also not sure
you used the correct or (I know some languages use ||), but I don't know
bgt sintax that well, anyway, try this in your while loop:

while (guess=number or guess= number)
On 3/26/2010 10:29 PM, Casey Mathews wrote:
   

Hello. I'm very impressed with BGT. I'm trying to make my own guess
the number game, just to try and get familiar with the sintax. I can't
figure out what I'm missing. I've looked at the examples in the
tutorial, and downloaded all of the examples from the web. The error
is below, follloed by my simple attempt. Thanks for any help.
Line: 5 (26)
Error: Expected expression value

void main()
{
alert(Number Guesser,Try to guess my number. I'll let you know if
you're too high, or too low. Make your guesses between numbers 1, and
10. Have fun!);
int number=random(1, 10);
while (guess=number or= number)
{
int guess = input_box(Guess,What's your guess?);
if (guess == number)
{
input_box(You Won!,You guessed my number!);
}
else
{
alert(Your Guess,Your guess was +guess+.);
}
}
}

---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to
gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the
list,
please send E-mail to gamers-ow...@audyssey.org.
 


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to
gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.
   



---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.