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

#1 2012-06-25 01:39:33

racypy
Scratcher
Registered: 2012-03-17
Posts: 28

Stack Push / Pop

My latest project

Hi, I am still a beginner at Scratch, but I am trying to write some articles for the MagPi magazine (a magazine about the Raspberry Pi computer).

I am hoping to include this project (and maybe some more) in a future issue. I'd appreciate any feedback from more experienced Scratchers.
mark

Oh, you can read the first article about Scratch in issue one of the MagPi (I didn't write that one!)
http://www.themagpi.com/

Offline

 

#2 2012-06-25 12:25:05

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Stack Push / Pop

Stack...? Already done. I made one for my Ackermann function calculator: http://scratch.mit.edu/forums/viewtopic.php?id=99489
(not trying to advertise)
Also, the "Enter" command when pushing items doesn't work. At least it didn't work for me.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#3 2012-06-25 14:34:51

racypy
Scratcher
Registered: 2012-03-17
Posts: 28

Re: Stack Push / Pop

Molybdenum wrote:

Stack...? Already done. I made one for my Ackermann function calculator: http://scratch.mit.edu/forums/viewtopic.php?id=99489
(not trying to advertise)
Also, the "Enter" command when pushing items doesn't work. At least it didn't work for me.

Thanks - I'll check my script again!
I'll have a look at your program.

Offline

 

#4 2012-06-25 14:53:30

racypy
Scratcher
Registered: 2012-03-17
Posts: 28

Re: Stack Push / Pop

Hi Molybdenum,
Thanks again for looking at my project. I've just checked it and it does seem to work. I've tried to clarify the instructions and I've re-uploaded it.
I realise that this is quite a simple thing, that others will have done. But I am a teacher and I'm trying to get a few things together to use for teaching programming ideas using Scratch.

The Maths of Ackermann's function looks way too hard for me!

So basically, in my project, you can push a series of numbers, words etc and when you are done, you press "enter" (or click the blue tick) this should then let you choose whether to push some more or pop some.
Seems to be working ....
mark

Offline

 

#5 2012-06-25 15:16:39

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Stack Push / Pop

I know how a stack works.

Oh, I though you meant to type in "Enter" (the word enter). I never though it meant to enter a blank string.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#6 2012-06-25 17:50:06

racypy
Scratcher
Registered: 2012-03-17
Posts: 28

Re: Stack Push / Pop

Molybdenum wrote:

I know how a stack works.

Oh, I though you meant to type in "Enter" (the word enter). I never though it meant to enter a blank string.

Sorry if I came across as patronising. I can tell you know your stuff!
I am really pleased you commented - it's very helpful get feedback!
cheers,
mark

Offline

 

#7 2012-06-25 18:28:00

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Stack Push / Pop

racypy wrote:

it's very helpful get feedback!

Yes it is.
And I didn't mean to imply you didn't have a good interface, its just that I take instructions literally sometimes.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

Board footer