ScratchData LogoScratchData
Back to Java_Programmer's profile

Scratch Codegolf - Sorting a Unique List

JAJava_Programmer•Created February 19, 2018
Scratch Codegolf - Sorting a Unique List
25
18
502 views
View on Scratch

Instructions

Remix this project with the following challenge/rules: CHALLENGE: - Sort a given list of unique numbers with the least number of blocks. - Your algorithm has to work with list lengths 2, 5, and 10 (any length is allowed for testing it though). RULES: - For this version of codegolf, a block is anything that can be pulled out of a script. See the example inside. - In this case, a list is sorted if each item value is equal to its index. - If you want to check if the list is sorted, you will have to include that in the scripts. - Custom blocks are allowed. - Recursion is allowed. - Extensions are not allowed. - Exploiting glitches is allowed (or, in this case, exploiting features in Scratch that would throw error messages in other languages). - Each value must be preserved and remain unique (as in, after any operation such as swapping or inserting, each value must be present once and only once in the list) within the Numbers list. If you have any questions, let me know.

Description

I've wanted to make a codegolf challenge on Scratch for a while. I would love to see what you guys can come up with. ;) RECORDS: 6 - 77Tigers_Test ( https://scratch.mit.edu/projects/205772189/ ) 8 - Trombopiano ( https://scratch.mit.edu/projects/240904733 ) 9/10 - scratching2x ( https://scratch.mit.edu/projects/205353609/ ) 11 - Cyborus ( https://scratch.mit.edu/projects/205301759/ ) 14 - NotAJumbleOfNumbers ( https://scratch.mit.edu/projects/205402873 ) 15 - Vlaros ( https://scratch.mit.edu/projects/204943453 ) 16 - Java_Programmer 17 - quyang ( https://scratch.mit.edu/projects/205448092 ) 18 - cat-991 ( https://scratch.mit.edu/projects/204927741 )

Project Details

Project ID204802248
CreatedFebruary 19, 2018
Last ModifiedAugust 28, 2018
SharedFebruary 19, 2018
Visibilityvisible
CommentsAllowed