bootstrapworld / curriculum

6 stars 7 forks source link

make a pyret version of the snowman starter file to share with teachers on discourse as a week before the holidays activity #697

Closed flannery-denny closed 2 years ago

flannery-denny commented 2 years ago

https://www.wescheme.org/openEditor?publicId=UgjYPyzBKZ

flannery-denny commented 2 years ago

@schanzer if you want me to do this, please share the behind the scenes code from the wescheme file. Thanks!

retabak commented 2 years ago

.... could stick the links into a Desmos activity with a tiny bit of instruction and share it in the Desmos facebook group too! Folks always want holiday activities. Happy to throw something together, thinking it would be very simple.

PS - I'd never seen this snowman puzzle before. It's cute!

flannery-denny commented 2 years ago

WeScheme files from Jen Snowman Teachpak Snowman Puzzle

Draft of Pyret files from Flannery - context isn't quite working... Snowman Puzzle Snowman Context

699

@schanzer. Any idea why the puzzle says that all of the things defined in the context are unbound?

schanzer commented 2 years ago

@flannery-denny my hunch is that the context doesn't provide any of those symbols. You'll need to add one or more provide ... expressions at the top of the context file.

For reference, here's a snippet from the top of the fall2022 algebra context:

provide *

import color as C
import math as M
include reactors
include image-structs
include reactors
import sets as S

import lists as L
provide from L: 
  *,
  type *, 
  data *
end
import image as I
provide from I:
  *,
  type *,
  data *
end

I think you only really need the image code, and the top-level provide * expression

flannery-denny commented 2 years ago

Thanks. that solved it. Meant to use the algebra context but the new essentials tricked me into thinking they had everything I needed :)