Computer Science Canada

Asterisks are fun!

Author:  helloolleh [ Tue May 26, 2009 8:31 am ]
Post subject:  Asterisks are fun!

Hello!
I jus immigrated to canada two days ago and i need help!
does anybody know how make an asterisk move across the screen on a certain row.
respond before 9:45 am
thank you

Author:  helloolleh [ Tue May 26, 2009 8:31 am ]
Post subject:  RE:Asterisks are fun!

eastern time

Author:  BigBear [ Tue May 26, 2009 9:37 am ]
Post subject:  RE:Asterisks are fun!

you can simply use
locate(row, column)
and

put "*"

then decide how you want the user to move it could be a get staement to get the row and column

I would suggest using locatexy or moving a box around the scrren

Author:  animeanime [ Tue May 26, 2009 10:12 am ]
Post subject:  Re: Asterisks are fun!

Mabye you were looking for something like this?

Turing:
var column: int

put "Choose a column for line ",
    "between 1 and 80 inclusive"
get column

cls

for row: 1..25
    locate (row,column)
    put "*"..
end for


This will draw a line verticly from top to bottem on the screen. You can add a delay if you want to to make it go slower or faster, up to your choise.

Author:  Siavash [ Tue May 26, 2009 12:03 pm ]
Post subject:  RE:Asterisks are fun!

*snip*


Mod Edit: Giving full answers dose not help people learn.

Author:  Dan [ Tue May 26, 2009 8:06 pm ]
Post subject:  RE:Asterisks are fun!

Lets not give full answers to obvious home work questions.

Thanks.

Author:  animeanime [ Wed May 27, 2009 8:23 am ]
Post subject:  RE:Asterisks are fun!

Sorry about that ^_^


: