SNAKE - In 18 Blocks [A] To turn left 90 degrees - [D] To turn right 90 degrees This project is officially done. I don't think I can do less than 18 blocks.
v1.0 - Initial Release with 50 blocks v1.0.1 - Fixed graphical bug with the Snake (no block number changes) v1.1 - Moved to two sprites. Set thumbnail via Scratch Addons. This brought the block count to 45. Also refactored the key presses - it keeps same block count but is far more readable. I then refactored the snake to only use one costume, and I removed the score variable, bringing the count down to 38. I removed a go to x y to bring it to 37. Got it to 35 by redoing the key detection again. v1.1.1 - Placed all snake code in one loop rather than two, decreasing block count by 2, but increasing jittery-ness. v1.1.2 - Removed extra edge detection blocks by making the border green, making the block count 31. Reduced to 30 by removing unnecessary call to "Food Eaten" at the beginning of the game. v1.2 - Using a "hacked" block (a block supported by scratch, but only available by editing the project.json), I have gotten it down to 28 blocks. This may be as small as it can go. v1.2.1 - Using another hacked block, I was able to get it down to 27. I believe that 26 is possible? Maybe? v1.2.2 - Got it to 26 by removing a set variable block. I do not know if I can go further. v1.3 - Got it to 25 by adjusting the wait timing stuff for the snake clones. I believe 24 to be the lower limit. But I have no way to prove that. v1.3.1 - Added support for arrow keys as well with no additional blocks added! v1.3.2 - Adjusted contrast of the game. v1.4 - Got it to 24 by replacing a `while not touching color` with `repeat until touching color` v1.5 - Got it to 22 by hardcoding in the positions of the fruit via backdrops. Now, no repositioning code for the fruit is needed, we only need to use the `switch backdrop to (random)` block. v1.5.1 - Improve key handling stuff by altering lists. Removed Arrow key functionality. v1.6 - Sometimes, simpler is better. I was able to refactor the movement to just pressing A/D to rotate, bringing our total to 18. v1.6.1 - Adjusted hardcoded values to make game much smoother. The block number was not changed.