Skip to content

Add single 'list' variable.#11

Open
NeilFraser wants to merge 1 commit into
mainfrom
Blockly
Open

Add single 'list' variable.#11
NeilFraser wants to merge 1 commit into
mainfrom
Blockly

Conversation

@NeilFraser
Copy link
Copy Markdown
Owner

This provides exactly one list (array) variable. Ideally one could have multiple lists, but the downsides of this are a) it's a lot more programming since Blockly doesn't naturally support this, and b) each list would have to be a fixed size.

Not sure what we want long-term. But in the short term, a single list is simple and actually enables quite a lot. Let's see how this works for now, and if real-world usage leads us to something more complex, then so be it. I think they call it "user testing".

The demo is up to date.

@NeilFraser NeilFraser requested a review from lucarosenberg May 25, 2026 09:59
@NeilFraser
Copy link
Copy Markdown
Owner Author

And thanks to lists, we now have our first game:
https://neil.fraser.name/software/blockly-agc/agc/#k9gs5b

It's a repeat game. It will show you an ever-increasing sequence of numbers which you need to memorize and type back in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant