Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let users choose generator language on Turtle game #111

Open
masmangan opened this issue Mar 9, 2019 · 3 comments
Open

Let users choose generator language on Turtle game #111

masmangan opened this issue Mar 9, 2019 · 3 comments

Comments

@masmangan
Copy link

masmangan commented Mar 9, 2019

I would like to see Python output when the user completes the challenge on Turtle game. At the moment the message is: "Congratulations! You solved this level with 4 lines of JavaScript:" and the code is generated in JavaScript only. Users can choose UI language (English, Portuguese etc), but not generator programming language.
This is not related to bug (#107), block language do not need to change.
I am proposing a second UI selector or GET parameter that would let the user to choose one of the other generator languages available from Blockly library (Python, PHP, Lua, or Dart). See: https://developers.google.com/blockly/guides/configure/web/code-generators.

I would love to see this change on https://blockly-games.appspot.com/turtle, so I don't need to host the game myself.

@moniika
Copy link
Contributor

moniika commented Nov 21, 2019

This is the same feature request as #107. Both requests are for Blockly Games to allow for a different language to be shown when a user completes a level.

It would be inconsistent with the rest of Blockly Games to only implement this on Turtle, so this would be across all apps.
You mention "block language" would not need to change, however we would not want to add a way to switch generated languages without also updating the look of the blocks to match (in the more code-like levels) as without this the learning benefit would be diminished. This significantly increases the work that we would already need to do (of implementing generators for the languages we want to allow for changing for all of our custom blocks)

We do not currently have plans of supporting this, but you are welcome to implement on a fork.

@moniika moniika closed this as completed Nov 21, 2019
@NeilFraser
Copy link
Contributor

Actually, Python support is almost complete (all games except Pond running). Reopening.

@NeilFraser NeilFraser reopened this Nov 21, 2019
@darrig-s
Copy link

Hi there, I would like to use the blockly games but with the code generated in Python, how can I do that please ? Thanks a lot

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

No branches or pull requests

4 participants