"Code Golf" is a challenge to write a program using the least number of code blocks. (You can right-click in the code editor to see how many blocks you have used). This "Code Golf" challenge is to draw the "cross" grid shown with squares size 40 using Pen. The cross must be centered on the stage. ie. the point x=0, y=0 is at the centre of the central square. Rules: * You must start with the 6 starter blocks. * You MAY modify the starter values in the "go to X: Y:" and "point in direction" blocks * You MAY replace the starter "Pen Up" block with "Pen Down" * You may NOT use the "Stamp" block * You may NOT use lists! (Otherwise all these grid problems can be solved in the same way by storing their data in lists) * You may NOT use data to simulate using a list: ie. you may NOT use the "letter ... of ..." block, or use costume/sprite/backdrop names to hold list data. Also you may NOT position or use multiple sprites to hold vertex positions similar to a list. Subtract the 6 starter blocks when calculating how many blocks your project uses. You can comment on this project with a link to your code-golfed project and/or make it a remix.
** Rules allow some changes to 6 starter blocks. ** Note the rules in the Instructions about "No lists or simulated lists allowed", otherwise all these "grid" problems can be solved by storing all their vertex data. Results (so far) -------------------- 8 blocks by @soa314 https://scratch.mit.edu/projects/803623923/ 9 blocks by @soa314 https://scratch.mit.edu/projects/787738313/ 10 blocks by @papipupepappa https://scratch.mit.edu/projects/738036606/ 10 blocks by @haruni459 https://scratch.mit.edu/projects/738038816/ I like the clones and algorithm in this 11 block project: https://scratch.mit.edu/projects/737939199/ I like the unusual path in this 13 block project: https://scratch.mit.edu/projects/737496311/ See the Code Golf Studio: https://scratch.mit.edu/studios/25601101/ It has some projects that demonstrate some advanced Scratch Code Golf techniques.