Need help using the "set menu to items" block in Microworlds library

No wonder this sort of block is bewildering even to a devoted Snap! user. I want to make some menus using that block but I don't know how. I even looked at the JavaScript code but the definition is still cryptic.
untitled script pic (2)

I think the value is just supposed to be a list of items.

Yeah, the EDC libraries aren't really documented for non-EDC use. Sorry.

I tried putting a list (the data type) into it and it caused an error.

Uh. Hey. Then why make it look like it's utilizable outside of EDC?

And, where can I find the documentation in EDC? What's with the EDC website?

Edit: With a clever breakthrough in the EDC website, I got into the Snap! UI in the website and was able to insert the &noRun argument to look in the code. I never realized that the options must be one of the default ones. You must specify one of the default options. Now, I am wondering, how am I gonna add custom options? No kidding!

https://microworld.edc.org/version/v2/snap.html#present:Username=math%2Bc&ProjectName=math%2Bc%20arrays&noRun

Alternate link in the main Snap! website:

https://snap.berkeley.edu/snap/snap.html#present:Username=math%2Bc&ProjectName=math%2Bc%20arrays&noRun

This is a work in progress. Eventually it'll be more usable, meanwhile putting it in Libraries is how we bless an extension.

Do you all simply adapt the functionality, or do you work with the original creator? It would be really super cool if we had an ECraft2Learn library/set of libraries.

It varies. Simple libraries that do things we want, we just inspect for evilness and then accept. Complicated things sometimes requires us getting involved. What's ECraft2Learn?

ECraft2Learn is Ken Kahn's super awesome amazing wonderful AI extension. See Is TensorFlow.js integration possible? and the library's website.

Snap whitelists Ecraft2learn! but not expose it as a library - maybe it's an early stage of development (@toontalk ???). But You can import projects or libraries from the E2L site into the standard :snap:
At least some of them are working flawlessly
https://snap.berkeley.edu/snap/snap.html#present:Username=dardoro&ProjectName=Ecraft2Learn%20balloon%20game%20&noRun

I started the library in 2016 when I joined a European research project called eCraft2Learn. I continually updated it until the end of 2022. Since then I've only fixed a couple bugs that people reported.

The reason I've moved on is that when I asked ChatGPT to create web apps very similar to several eCraft2Learn sample projects it went surprisingly well. Here are some examples:

Speak random numbers and repeat what was heard

Click on the images. Ignore Google Translation key unless you have one.

OpenAI log; PDF of log

Draw on video

Paints when your forefinger is vertical. Speak a common color to change the pen color.

OpenAI log; PDF of log

A deep neural network for judging confidence

You can train it on 60 sentences marked as showing confidence, lack of confidence or neither.

Training can take a minute or two for 20 epoch cycles. More epochs works better. After training new sentences can be categorized.

OpenAI log; PDF of log

Simulates a conversation between famous people

You can join in. Scroll down for interface on small screens.

OpenAI log; PDF of log

OpenAI log; PDF of log

Subsequently I asked ChatGPT, Claude, and Gemini to improve the game. Here’s how it went.

Illustrated story generator

REQUIRES AN OPENAI API KEY

Discussion; Sample story

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.