Skip to content

Sound of Sorting conversion problems #155

@lucentlavender

Description

@lucentlavender

Compilation issues:

  • numberAt (which returns a double) is used where an integer is needed
  • In scratch pen color can be a decimal, in greenfoot it is an int
  • Nested for loops use the same index variable
  • In scratch mod works on decimals, in greenfoot it only works on ints
  • Numeric block parameters are always assumed to be doubles
  • Several other Double vs Integer problems

Once all of these have been manually resolved, we get these Runtime Issues:

  • The bars are way too close together - reason unknown
  • The sounds do not play while the first whenFlagClickedSequence is running - reason unknown
  • Some bars are not displayed - reason unknown
  • Sorted bars are much shorter than unsorted ones - reason unknown
  • Sorting doesn't work correctly, some bars remain unsorted - reason unknown
  • UpdatePositions goes out of range on radix sort
  • SelectionSort fails due to an invalid index

For reference: https://scratch.mit.edu/projects/149793697/#editor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions