Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Sorting things
Old
Operon5
Guest
 
Status:
Posts: n/a
Default Sorting things - 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.
   
Reply With Quote
Old
JustasM
Guest
 
Status:
Posts: n/a
Default 02-27-2009, 02:57 PM

Quote:
Originally Posted by Operon5 View Post
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.
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 577
Join Date: Nov 2008
Location: In the interwebs
Default 03-05-2009, 09:00 PM

Quote:
Originally Posted by fiction View Post
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


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.