Operon5
02-27-2009, 01:55 PM
I am trying to sort items according to their height. I want to use a selection sort algorithm but I'm having trouble figuring out how to use one in the Alice program. I'm using Alice 2.2
Thanks.
JustasM
02-27-2009, 02:57 PM
I am trying to sort items according to their height. I want to use a selection sort algorithm but I'm having trouble figuring out how to use one in the Alice program. I'm using Alice 2.2
Thanks.
As far as I am aware, there is no inbuilt feature in Alice that accomplishes this. (No matter how much I would like it.):(
However, I am sure that it is feasible to attempt to do this manually. You could, for example use functions for each object to determine their height, then make it such that the higher they are, the further they move forward/move up a list/ change color, or anything of the sort.
Try to experiment a bit.;)
zonedabone
03-05-2009, 09:00 PM
I can quote people who don't exist!
Sorry. Had to do that. My idea is that you can do just about the same thing as the guy above me said, but using a compilation loop. I use a compilation loop in alice word 08. Look it up