2010/7/21 Victor Hugo Germano <[email protected]>:
> hey there...
>
> the cube.py file has a algoritm to:
> - move all possible position on a 2d space, generating (without
> rotation) 136 diferent position for the pieces
> which mean that we only need to:
> (pseudo code)
>
> for each piece:
>  -  Move down and right untill u cannot move anymore (already working)

I think you need to use 3 directions to make sure it's in a corner.

>  - get the next rotation for that piece

Yes, that'll be given as a list; there's a function that expands one
listo-format piece to its 24 rotations.

>  - start over
>
> at the end we will have all the possible rotations/movements for each piece

Cool.

There's still something wrong with the displaying of the pieces, I've
tried to find out where the bug is, but I didn't succeed.  Will look
more into it tomorrow.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Ireland" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pythonireland?hl=en.

Reply via email to