This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (June 2017) |
Code-golfing is a competition or challenge where one tries to reduce the length of some piece of code while making it accomplish the same task.[1] The way the length of code is measured is ambiguous in Scratch and is done in multiple ways, including:
- The number of characters in the text version of the project, after it is converted to Scratchblocks.
- The number of characters in the JSON version of a project.
- The total number of stack blocks in a project.
- The total number of blocks in a project.
These all produce different values but increase as more blocks are added.
The name "code golf" originates from the sport golf, where lower scores are considered better.