This is a working PB program: 

(require test-engine/racket-tests)
(require 2htdp/image)
(require 2htdp/universe)

(big-bang 100
  (to-draw (lambda (x) (circle (+ x 1) 'solid 'red)))
  (on-tick sub1)
  (stop-when zero?))

(test)


Now please do the rest of your homework yourself. 


> On Jan 26, 2019, at 2:55 PM, orenpa11 <oren...@gmail.com> wrote:
> 
> Hi Matthias ,
> I am sorry but I still did get it.
> should I import the snake file that was written in "Beginning Student with 
> List Abbreviations"  and the code will be chnaged to  pretty big ?
> or only the "check-expect" is been chnaged from  "Beginning Student with List 
> Abbreviations"  to  pretty big ?
> Does Pretty Big has  drawing functions ?
> 
> Thanks,
> Or
> 
> On Friday, January 25, 2019 at 5:33:50 PM UTC+2, Matthias Felleisen wrote:
> 
> See below. I gave precise instructions. 
> 
> 
> > On Jan 25, 2019, at 10:27 AM, orenpa11 <ore...@gmail.com <javascript:>> 
> > wrote: 
> > 
> > OK, 
> > Got it , but how can I import the code of the snake program that was 
> > written in "Beginning Student with List Abbreviations"  and chnage it to  
> > pretty big ? 
> >   
> > 
> > On Friday, January 25, 2019 at 4:08:40 PM UTC+2, Robby Findler wrote: 
> > You've opened the right dialog. Now type "test-" into it. You should 
> > see the file appear. Click on it. 
> > 
> > Robby 
> > 
> > On Fri, Jan 25, 2019 at 7:53 AM orenpa11 <ore...@gmail.com <>> wrote: 
> > > 
> > > Hi, 
> > > Sorry but I did not get it. 
> > > should I add the path to the rkt file or add the code ? 
> > > 
> > > Thanks, 
> > > Or 
> > > 
> > > On Friday, January 25, 2019 at 1:39:12 PM UTC+2, Matthias Felleisen 
> > > wrote: 
> > >> 
> > >> 
> > >> DrRacket -> File -> Open Require Path -> enter test- -> use mouse 
> > >> 
> > >> 
> > >> On Jan 24, 2019, at 11:11 PM, orenpa11 <ore...@gmail.com <>> wrote: 
> > >> 
> > >> Hi 
> > >> where can I find the  test-engine ? 
> > >> I would like to copy the code  and  "play" with it. 
> > >> So I can understand it better . 
> > >> just copying the code is not helpful because I need to understand it. 
> > >> 
> > >> Thanks, 
> > >> Or 
> > >> 
> > >> On Thursday, January 24, 2019 at 11:54:34 PM UTC+2, Matthias Felleisen 
> > >> wrote: 
> > >>> 
> > >>> 
> > >>> Yes there is. Use (require test-engine/racket-tests) 
> > >>> at the top and (test) at the bottom. 
> > >>> 
> > >>> But it sounds like you’re copying and pasting homework 
> > >>> solutions. Hmph. 
> > >>> 
> > >>> 
> > >>> 
> > >>> 
> > >>> > On Jan 24, 2019, at 3:44 PM, orenpa11 <ore...@gmail.com <>> wrote: 
> > >>> > 
> > >>> > Hi Matthias , 
> > >>> > Unfortunately I need to write the project in pretty big language. 
> > >>> > The game is not written in pretty big language as far as I know. 
> > >>> > I thought that can copy andycode that was written in any language in 
> > >>> > racket to pretty big. 
> > >>> > Is there a way to transfer code that was written in  "Beginning 
> > >>> > Student with List Abbreviations" to pretty big ? 
> > >>> > 
> > >>> > Thanks, 
> > >>> > Or 
> > >>> > 
> > >>> > 
> > >>> > 
> > >>> > 
> > >>> > On Thursday, January 24, 2019 at 9:19:14 PM UTC+2, Matthias Felleisen 
> > >>> > wrote: 
> > >>> > 
> > >>> > 
> > >>> > Where did you find the snake game? 
> > >>> > Where did it say it’s written in Pretty Big? 
> > >>> > 
> > >>> > We have not used Pretty Big in over a decade in education, 
> > >>> > neither does anyone in the Racket edu community proper. 
> > >>> > 
> > >>> > This community supports people readily wth answers, but 
> > >>> > we need to know what you know. 
> > >>> > 
> > >>> > — Matthias 
> > >>> > 
> > >>> > 
> > >>> > 
> > >>> > 
> > >>> > > On Jan 24, 2019, at 12:56 PM, orenpa11 <ore...@gmail.com <>> wrote: 
> > >>> > > 
> > >>> > > Hi 
> > >>> > > I need to create a project in pertty big . 
> > >>> > > why this code is not been supported ? 
> > >>> > > 
> > >>> > > Thanks, 
> > >>> > > Or 
> > >>> > > 
> > >>> > > On Thursday, January 24, 2019 at 3:29:11 PM UTC+2, Kieron Hardy 
> > >>> > > wrote: 
> > >>> > > The language you should be using is "Beginning Student with List 
> > >>> > > Abbreviations". 
> > >>> > > 
> > >>> > > On Jan 24, 2019, at 4:33 AM, orenpa11 <ore...@gmail.com <>> wrote: 
> > >>> > > 
> > >>> > >> Hi, 
> > >>> > >> when I removed the line 
> > >>> > >> #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname 
> > >>> > >> snake-full) (read-case-sensitive #t) (teachpacks ()) 
> > >>> > >> (htdp-settings #(#t constructor repeating-decimal #f #t none #f 
> > >>> > >> ()))) 
> > >>> > >> 
> > >>> > >> And changed the  language to pretty big. 
> > >>> > >> I recived this error: 
> > >>> > >> Welcome to DrRacket, version 7.1 [3m]. 
> > >>> > >> Language: Pretty Big; memory limit: 128 MB. 
> > >>> > >> . . check-expect: undefined; 
> > >>> > >>  cannot reference an identifier before its definition 
> > >>> > >> 
> > >>> > >> Any idea ? 
> > >>> > >> 
> > >>> > >> Thanks, 
> > >>> > >> Or 
> > >>> > >> 
> > >>> > >> 
> > >>> > >> 
> > >>> > >> 
> > >>> > >> 
> > >>> > >> On Wednesday, January 23, 2019 at 10:49:01 PM UTC+2, Kieron Hardy 
> > >>> > >> wrote: 
> > >>> > >> It seems the metadata lines added by DrRacket (mentioned by John) 
> > >>> > >> are processed when the a source file is loaded into DrRacket (via 
> > >>> > >> the menu option File/Open), but are not processed if the source 
> > >>> > >> code is directly copied (e.g. from a browser window) into a 
> > >>> > >> DrRacket window and then executed with the 'Run' button. 
> > >>> > >> 
> > >>> > >> The metadata includes a #reader directive, e.g.: 
> > >>> > >> (#reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname 
> > >>> > >> snake-full) ...) 
> > >>> > >> 
> > >>> > >> This reader directive appears to be silently ignored by DrRacket 
> > >>> > >> when the source is 'Run', even though DrRacket shows "#reader" in 
> > >>> > >> red (as when an error is detected). The actions taken by DrRacket 
> > >>> > >> when 'Run' is pressed seem to depend on the settings in effect 
> > >>> > >> when the code is executed, which could be nothing, or throwing a 
> > >>> > >> confusing error. 
> > >>> > >> 
> > >>> > >> The solution for the original poster's issue is as John directs; 
> > >>> > >> remove the metadata (i.e. #reader directive) and manually set the 
> > >>> > >> language. 
> > >>> > >> 
> > >>> > >> However, I feel that DrRacket should recognize and act on (and 
> > >>> > >> perhaps also remove/hide from view) the metadata if the metadata 
> > >>> > >> occurs as from a copy/paste directly into a DrRacket window (e.g. 
> > >>> > >> as from a URL). The current behaviour is, I think, a bug and a 
> > >>> > >> trap (perhaps showstopping) for a new user experimenting with 
> > >>> > >> Racket. 
> > >>> > >> 
> > >>> > >> Note that the Racket executable seems to process the metadata 
> > >>> > >> properly, understanding the language to use, etc.. so that the 
> > >>> > >> code behaves as intended. 
> > >>> > >> 
> > >>> > >> On Wed, Jan 23, 2019 at 12:32 PM K H <kieron...@gmail.com <>> 
> > >>> > >> wrote: 
> > >>> > >> Hello Or, 
> > >>> > >> 
> > >>> > >> The language is not "Pretty Big". 
> > >>> > >> 
> > >>> > >> You should be using "Beginning Student with List Abbreviations". 
> > >>> > >> 
> > >>> > >> The DrRacket metadata lines referred to by John set the correct 
> > >>> > >> language. In your case you must have changed the language somehow. 
> > >>> > >> Or perhaps the file needs to be saved before the metadata is acted 
> > >>> > >> upon. 
> > >>> > >> 
> > >>> > >> HTH, 
> > >>> > >> 
> > >>> > >> Kieron. 
> > >>> > >> 
> > >>> > >> 
> > >>> > >> On Wed, Jan 23, 2019 at 12:17 PM 'John Clements' via Racket Users 
> > >>> > >> <racket...@googlegroups.com <>> wrote: 
> > >>> > >> Interesting problem; your screenshot shows header text that should 
> > >>> > >> not appear in the window, which suggests to me that you copied and 
> > >>> > >> pasted the text from somewhere else into a buffer where the 
> > >>> > >> language level was already set. It looks to me like you should do 
> > >>> > >> the following: 
> > >>> > >> 
> > >>> > >> 1) Delete the first three lines of the file. 
> > >>> > >> 2) Set the language level to “beginner with list abbreviations”. 
> > >>> > >> 3) Click “run” 
> > >>> > >> 
> > >>> > >> John Clements 
> > >>> > >> 
> > >>> > >> > On Jan 23, 2019, at 10:44 AM, orenpa11 <ore...@gmail.com <>> 
> > >>> > >> > wrote: 
> > >>> > >> > 
> > >>> > >> > Hi David, 
> > >>> > >> > Thanks for your swift response ,I simply do not know how to run 
> > >>> > >> > this program. 
> > >>> > >> > I thought that when I press the run button I should see the 
> > >>> > >> > snake GUI . 
> > >>> > >> > 
> > >>> > >> > Maybe the language is not pretty big ? 
> > >>> > >> > Thanks, 
> > >>> > >> > Or 
> > >>> > >> > 
> > >>> > >> > 
> > >>> > >> > On Wednesday, January 23, 2019 at 8:25:32 PM UTC+2, David K. 
> > >>> > >> > Storrs wrote: 
> > >>> > >> > What happens when you run it?  Are you getting any error 
> > >>> > >> > messages? 
> > >>> > >> > 
> > >>> > >> > On Wed, Jan 23, 2019 at 1:01 PM orenpa11 <ore...@gmail.com <>> 
> > >>> > >> > wrote: 
> > >>> > >> > > 
> > >>> > >> > > Hi 
> > >>> > >> > > I am trying to implemet this code of "snake game " 
> > >>> > >> > > https://course.ccs.neu.edu/csu211/code/snake-full.ss 
> > >>> > >> > > <https://course.ccs.neu.edu/csu211/code/snake-full.ss> 
> > >>> > >> > > 
> > >>> > >> > > in DrRacket (Pretty big) 
> > >>> > >> > >  But when I run it it is not working . 
> > >>> > >> > > any Idea ? 
> > >>> > >> > > 
> > >>> > >> > > Thanks 
> > >>> > >> > > Or 
> > >>> > >> > > 
> > >>> > >> > > -- 
> > >>> > >> > > You received this message because you are subscribed to the 
> > >>> > >> > > Google Groups "Racket Users" group. 
> > >>> > >> > > To unsubscribe from this group and stop receiving emails from 
> > >>> > >> > > it, send an email to racket-users...@googlegroups.com <>. 
> > >>> > >> > > For more options, visit https://groups.google.com/d/optout 
> > >>> > >> > > <https://groups.google.com/d/optout>. 
> > >>> > >> > 
> > >>> > >> > -- 
> > >>> > >> > You received this message because you are subscribed to the 
> > >>> > >> > Google Groups "Racket Users" group.  
> > >>> > >> > To unsubscribe from this group and stop receiving emails from 
> > >>> > >> > it, send an email to racket-users...@googlegroups.com <>. 
> > >>> > >> > For more options, visit https://groups.google.com/d/optout 
> > >>> > >> > <https://groups.google.com/d/optout>. 
> > >>> > >> 
> > >>> > >> 
> > >>> > >> 
> > >>> > >> -- 
> > >>> > >> You received this message because you are subscribed to the Google 
> > >>> > >> Groups "Racket Users" group. 
> > >>> > >> To unsubscribe from this group and stop receiving emails from it, 
> > >>> > >> send an email to racket-users...@googlegroups.com <>. 
> > >>> > >> For more options, visit https://groups.google.com/d/optout 
> > >>> > >> <https://groups.google.com/d/optout>. 
> > >>> > >> 
> > >>> > >> -- 
> > >>> > >> You received this message because you are subscribed to the Google 
> > >>> > >> Groups "Racket Users" group. 
> > >>> > >> To unsubscribe from this group and stop receiving emails from it, 
> > >>> > >> send an email to racket-users...@googlegroups.com <>. 
> > >>> > >> For more options, visit https://groups.google.com/d/optout 
> > >>> > >> <https://groups.google.com/d/optout>. 
> > >>> > >> <error_1.jpg> 
> > >>> > > 
> > >>> > > -- 
> > >>> > > You received this message because you are subscribed to the Google 
> > >>> > > Groups "Racket Users" group. 
> > >>> > > To unsubscribe from this group and stop receiving emails from it, 
> > >>> > > send an email to racket-users...@googlegroups.com <>. 
> > >>> > > For more options, visit https://groups.google.com/d/optout 
> > >>> > > <https://groups.google.com/d/optout>. 
> > >>> > 
> > >>> > 
> > >>> > -- 
> > >>> > You received this message because you are subscribed to the Google 
> > >>> > Groups "Racket Users" group. 
> > >>> > To unsubscribe from this group and stop receiving emails from it, 
> > >>> > send an email to racket-users...@googlegroups.com <>. 
> > >>> > For more options, visit https://groups.google.com/d/optout 
> > >>> > <https://groups.google.com/d/optout>. 
> > >>> 
> > >> 
> > >> -- 
> > >> You received this message because you are subscribed to the Google 
> > >> Groups "Racket Users" group. 
> > >> To unsubscribe from this group and stop receiving emails from it, send 
> > >> an email to racket-users...@googlegroups.com <>. 
> > >> For more options, visit https://groups.google.com/d/optout 
> > >> <https://groups.google.com/d/optout>. 
> > >> 
> > >> 
> > > -- 
> > > You received this message because you are subscribed to the Google Groups 
> > > "Racket Users" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send an 
> > > email to racket-users...@googlegroups.com <>. 
> > > For more options, visit https://groups.google.com/d/optout 
> > > <https://groups.google.com/d/optout>. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "Racket Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to racket-users...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout 
> > <https://groups.google.com/d/optout>. 
> > <question2.jpg> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com 
> <mailto:racket-users+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to