This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-02-19 09:08:57

aaminor
New Scratcher
Registered: 2013-02-12
Posts: 14

Easy Game Help?

I'm working with BYOB in my programming class (we used Scratch earlier), and our assignment is to make a 'game board'.

Link to what our teacher is asking of us: http://sage.cs.berkeley.edu/mod/resource/view.php?id=12745

Basically, she's asking to make a block that takes a list, x AND y variables. I'm completely lost, and our teacher won't help us so we can 'learn'. Any help is appreciated!

TO LOGIN, SIMPLY CLICK 'LOGIN AS GUEST' BELOW THE USERNAME/PASSWORD FIELD

Offline

 

#2 2013-02-19 19:08:07

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Easy Game Help?

Okay. Let me provide what assistance I can. This block will need three parameters: a list and two integers. Now, the first thing you want to do is clear the list. There might, for some reason, already be values there. The list will then have "rows" added to it which are basically strings consisting of x "B"s. You are to add y of them. So, calculate the value of the rows by repeated concatenation, and then repeatedly add it to the list y times.

Last edited by lalala3 (2013-02-19 19:08:39)


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

Board footer