stamp_small_squares_starter
Project Description
stamp_small_squares_starter, 2025f.jun01
Instructions:
Fix the numbered buttons so they tell stamper to draw shapes! Puzzles 2…7 are hard. Problems 8…10 are extra hard.
Each of the first 7 numbered-button sprites shows a different slanting pyramid for the stamper to make. Only the rectangle (puzzle 1) and box (p8) work so far. The red code blocks should use blocks, variables, and repeats to draw the shapes shown.
Buttons will tell the stamper to draw using pink commands from the "stamper" blocks on left side, such as "stepsRight(howMany)" or "stampOnGrid". That left-side block library also has a red "puzzles" zone which includes helpful samples to duplicate.
The full list of broadcast-able commands is inside the stamper.
Please don't use the variables that have names starting with "yy..." or "zz..." -- they are special, secret, and necessary.
This is major practice with blocks, variables, and repeats!
"Clear" erases the screen. Greenflag puts the "stamper" at a favorite starting place. Click screen or use "goToXY..." to move the stamper. "Test" lets us test one or all of the purple buttons.
Note to self for future improvements:
[ ] rename "stepsLeft ( )" to "go ( ) stepsLeft"
[ ] Animate the stamper to be more visible
[ ] Figure out how to export for easy conversion to stamp_BIG_squares.
Notes & Credits:
Project by Mike Roam, 2022nov-2025
Revisions 2025f.jun
[x] The starter code is now already inside the puzzles 2, 3, and 4, with more hints.
Revisions 2025d.apr
[x]Tests of prob 6 with stepSize -2 and -3. [x]Tests of prob 7 w/ odd & even width.
Revisions 2025jan:
[x] the stamper notices if it gets dragged to new position.
[x] renamed stmpSm to stamper_s ... had to change every broadcast and of.. by hand.
[x] mark every sprite & most block re don't change me.
[x] lost and regained p8's checkWallVis...
[x] p9, p10, updated for Snap!
[x] tester needa update for Snap!
[x] p8.box has local blocks which could/should be remade global.
[x] was stamping with outlines.
[x] drag-the-stamper working!
[x] Moved stamperBig's glob
al blocks into stamperSmall. Now that we are using "tell", could these blocks be local? Tricky!! Have to use fancy "tell s2 to ([gotoXY...] of [s2]) with inputs 0 0" Can't drag"tell s2 to stamp" into sprite for which stamp isn't local, apparently. Ugh. Shouldn't they? Or harder to "tell"?
Revisions 2024feb. ([x] Includes p8, p9, & p10 in the tests! [x] Test button can show expected results on grey. [x] goto uses round() so always lands exactly on tiles. [x] Box works, TicTacToe wants fix, neither is in test yet. [x] Stamper can change color. [x] Problem messages start with z so they follow stamper's messages. [x] Black outline when walking and white outline when stamping. [x] Test specifies its own heightWanted (already had width). [x] smaller squares, 5 instead of 20 pixels. [x] Student coding happens inside buttons instead of inside stamper. [x] Click to move stamper!)
Based upon various "typewrite art" projects I've done and seen over the years. The "stamper" sprite provides about ten red code blocks to use. It's a little tricky because they limit you to drawing down from the top, only.
The bug sprite can call any (or every) button, but doesn't know if they draw the right thing so check yourself. I've made an answer key picture that I share in canvas.
QUESTIONS: how to change range of var with slider on screen on iPad w/o keyboard?? (control click works if have keyboard)
PLANS/TODO: [ ] Have upside down 6 (or 3 w/ stepsize) for better drawing of H in D logo. [ ] Have semi-fixed left edge so we could have a down-and-left-to-edge command? Nah, too confusing. [ ] perhaps rename default argument "myHowMany" to be "arg"?? Nah, too abstract?? (& Would have to rename all broadcasts that use it.)
Converted 2025a.jan18 by Snapinator from original by M. Roam at https://scratch.mit.edu/projects/946780112
Created January 18, 2025
Last updated June 1, 2025
Shared March 27, 2025