home *** CD-ROM | disk | FTP | other *** search
- 1 rem ==================================
- 2 rem commodares problem #46-4 :
- 3 rem character billiards
- 4 rem solution suggested independently
- 5 rem by larry schafer
- 6 rem and jim lostetter
- 7 rem and manfred klocek
- 8 rem ==================================
- 10 print"[147]":dx=1:dy=1
- 20 g=1024+x+40*y :poke g,87 :fori=1to15 :next :poke g,32
- 30 y=y+dy:if y<1 or y>23 then dy=-dy
- 40 x=x+dx:if x<1 or x>38 then dx=-dx
- 50 goto 20
-