Computer Science Canada

Can this be simplified?

Author:  Nameless_man [ Wed Jan 19, 2005 6:58 pm ]
Post subject:  Can this be simplified?

Need help on simplifing. Surprised
Its supposed to be the game "concentration" where u look for the card/diagram asked.
Currently not done (no duh)
and im planning to repeat the chunk of process over few times,
gonna be like 9000 lines when its done.... (which is bad)
thx. Wink

Author:  OsoInsane_abh [ Wed Jan 19, 2005 7:20 pm ]
Post subject: 

OH wow, i cant guess who this is...... Rolling Eyes

if i were you i would just use my orignal name and ask the question..... Idea

HINT: FILENAME = ISP2.t

Author:  cycro1234 [ Wed Jan 19, 2005 7:40 pm ]
Post subject: 

Holy mother of sweet Jesus that's A LOT of code!

Author:  Nameless_man [ Wed Jan 19, 2005 7:52 pm ]
Post subject: 

heh
yep its a lot
but its mostly copy and pasting
hardly any typin
and yea....
heh wats ur name? i no ur in TIK afternoon....

Author:  cycro1234 [ Wed Jan 19, 2005 7:54 pm ]
Post subject: 

You could try reading the tutorial on arrays, coz maybe that will help. As for my name, its Cycro.

Author:  Nameless_man [ Wed Jan 19, 2005 7:56 pm ]
Post subject: 

heh thx, and no not u the other guy

Author:  cycro1234 [ Wed Jan 19, 2005 8:05 pm ]
Post subject: 

Here's some code to simplify all those drawboxes u have. They could be all easily made using 2 for loops.

code:
for x : 1 .. 150 by 25
    for y : 1 .. 150 by 25
        drawfillbox (3+x, 3+y, 25+x, 25+y, 70)
    end for
end for


Hope it helps. 8)

Author:  OsoInsane_abh [ Wed Jan 19, 2005 8:15 pm ]
Post subject: 

Dude, Dont you know its not pleasent to give out your real name in the internet...anyways my name is Abhishek

Author:  Nameless_man [ Wed Jan 19, 2005 8:23 pm ]
Post subject: 

bah.....
i dun understand arrays ><
wanna care to explain to me in PM cycro =P?
lmao

Author:  cycro1234 [ Wed Jan 19, 2005 8:54 pm ]
Post subject: 

Sure, rite after you read this tutorial made on arrays. You should check out the stickies at the top, some of them contain useful information.

http://www.compsci.ca/v2/viewtopic.php?t=366

Author:  Nameless_man [ Wed Jan 19, 2005 9:05 pm ]
Post subject: 

hmmm how do i use array in my program then?
(btw i dun rly understand array..)

Author:  cycro1234 [ Wed Jan 19, 2005 9:24 pm ]
Post subject: 

I said you might be able to use an array. All your if statements use the variable "reply". The if statements all get a number, yet u declared reply as a string. Maybe if you declared it as an integer, things may be easier? Btw, what's your name? (For easier reference)


: