JMCanning78 / DemoRepo

0 stars 0 forks source link

Add New Stack and Peek methods in Stack.py #27

Open JMCanning78 opened 4 years ago

JMCanning78 commented 4 years ago

Add a New Stack operation that takes an argument for the maximum stack size. Either disable the Push button or report an error if it pressed when the the stack is full. Add a Peek operation that animates copying the topmost stack value to a place near the bottom of the canvas. The colored background of the cell should not be part of what is "output" by Peek since it is no longer in the stack data structure. Either disable Peek and Pop or report errors if they are pressed when the stack is empty.

Allow stack items to be short strings, not just numbers. Adjust the cell size so the strings can be 8 characters wide.

JMCanning78 commented 4 years ago

This issue depends on issue: #24.