alice-teacher Chapter 7 issue with integer function in Boolean if/while

Ron Guillemette rgilmet123 at gmail.com
Mon Jan 27 18:34:02 EST 2014


Thanks so much.

Ron

Mr. Guillemette

Computer Technology and Game Design
The Regional Career & Tech Center @ Coventry High
40 Reservoir Road, Coventry, RI 02816
401-822-9499 ext 287


On Mon, Jan 27, 2014 at 12:14 PM, Robert Durtschi
<robert.durtschi at gcsu.edu>wrote:

> I ran into almost the exact same problem.
> The compare  function Will accept and adjust for an integer variable but
> not an integer function.  What we did in my classes is to create a
> temporary integer variable (FUBAR - Fouled Up Beyond All Recognition, has
> an old an honored tradition), Drag it down into the while true..., then
> drag the integer function on top of the temporary integer variable.
>
> Best
> Bob Durtschi
> ________________________________________
>
> Message: 2
> Date: Mon, 27 Jan 2014 09:00:08 -0500
> From: Ron Guillemette <rgilmet123 at gmail.com>
> Subject: alice-teacher Conditional Loops
> To: Alice List <alice-teachers at lists.andrew.cmu.edu>
> Message-ID:
>         <
> CAByJi1uoxB-KuVt1ohQ60nmJQOLfp-RnnAO4-P64fo6Az1JEOg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I'm not sure what I am doing wrong, but I am trying to do the Chase scene
> in Chapter 7 of the Programming with Alice book using While in the chase
> method.  I am unable to drag the "goldfish distance in front of shark"
> function into the "true" condition of the while.  I keep getting a red
> outline around the command.
>
> Thanks for any help.
>
> Ron. Guillemette
>
> Computer Technology and Game Design
> The Regional Career & Tech Center @ Coventry High
> 40 Reservoir Road, Coventry, RI 02816
> 401-822-9499 ext 287
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140127/93bc5355/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Mon, 27 Jan 2014 06:09:44 -0800 (PST)
> From: Frank Hulsman <frankhulsman at yahoo.com>
> Subject: Re: alice-teacher Conditional Loops
> To: Alice educators <alice-teachers at lists.andrew.cmu.edu>
> Message-ID:
>         <1390831784.15942.YahooMailNeo at web161306.mail.bf1.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Alice 2.x??? That condition is looking for a Boolean (true / false)
> value.? What you are trying to drag in returns a number (distance).? The
> solution would be to first drag in a condition (World, Functions, Math, A >
> B).? Place numbers initially into A and B (1, 2), then replace one? with
> the function you want use ("goldfish distance in front of shark") and then
> how far in front....
> ?
> Frank Hulsman
> St. Xavier High School
> Louisville, Ky
>
> From: Ron Guillemette <rgilmet123 at gmail.com>
> To: Alice List <alice-teachers at lists.andrew.cmu.edu>
> Sent: Monday, January 27, 2014 9:00 AM
> Subject: alice-teacher Conditional Loops
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140127/50673b6f/attachment.html 


More information about the alice-teachers mailing list