The description in English is provided below Japanese one.
Scratch 2.0 のコードを C++ ソース (.cpp) に変換できるコード変換ツール
git clone https://github.com/yos1up/scratch2cpp.git
- Python3
-
Create a Scratch 2.0 project which solves the problem.
-
Use
when [Flag] clickedblock to specify the entry point. -
Use
ask ... and waitblock to get a value from standard input. (The value will be stored inanswer.) (The asking message is arbitrary. ) -
Use
say ...block to output a line to standard output. (Usethink ...block to output a line to stderr.) -
Use
stop ...block to terminate your program in the middle of the script. (The option is arbitrary. )
-
-
Save your project as a .sb2 file.
-
python sb2_to_cpp.py scratch_project_file.sb2 -o output_file.cpp -
submit the content of
output_file.cpp.
こちらをどうぞ. https://scratch.mit.edu/studios/5346476/
こちらをどうぞ.
Code converting tool which works offline. You can convert Scratch 2.0 project file (.sb2) into C++ source code (.cpp)
git clone https://github.com/yos1up/scratch2cpp.git
- Python3
-
Create a Scratch 2.0 project which solves the problem.
-
Use
when [Flag] clickedblock to specify the entry point. -
Use
ask ... and waitblock to get a value from standard input. (The value will be stored inanswer.) (The asking message is arbitrary. ) -
Use
say ...block to output a line to standard output. (Usethink ...block to output a line to stderr.) -
Use
stop ...block to terminate your program in the middle of the script. (The option is arbitrary. )
-
-
Save your project as a .sb2 file.
-
python sb2_to_cpp.py scratch_project_file.sb2 -o output_file.cpp -
submit the content of
output_file.cpp.
See https://scratch.mit.edu/studios/5346476/
See here.