Re: Rubik's cube translation

2008-04-01 Thread castironpi
On Apr 1, 1:00 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > >What if this is connected: > > D > >array([[1, 2, 3], > >       [4, 5, 6], > >       [6, 7, 8]]) > E > >array([[6, 7, 8], > >       [0, 0, 0], > >       [0, 0, 0]]) > > >--> > > D > >array([[1,

Re: Rubik's cube translation

2008-03-31 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >What if this is connected: > D >array([[1, 2, 3], > [4, 5, 6], > [6, 7, 8]]) E >array([[6, 7, 8], > [0, 0, 0], > [0, 0, 0]]) > >--> > D >array([[1, 2, 3], > [4, 5, 6], > [6, 7, 8]]) E >array([[6, 7, 8], > [0,

Re: Rubik's cube translation

2008-03-30 Thread castironpi
On Mar 30, 9:48 pm, "Tim Leslie" <[EMAIL PROTECTED]> wrote: > On Mon, Mar 31, 2008 at 12:24 PM,  <[EMAIL PROTECTED]> wrote: > > How do I get a Rubik's cube translation out of this: > > >  >>> a= numpy.array([[0,1,2],[3,4,5],[6,7,8]])

Re: Rubik's cube translation

2008-03-30 Thread Tim Leslie
On Mon, Mar 31, 2008 at 12:24 PM, <[EMAIL PROTECTED]> wrote: > How do I get a Rubik's cube translation out of this: > > >>> a= numpy.array([[0,1,2],[3,4,5],[6,7,8]]) > >>> a > array([[0, 1, 2], >[3, 4, 5], >[6, 7, 8]]) >

Rubik's cube translation

2008-03-30 Thread castironpi
How do I get a Rubik's cube translation out of this: >>> a= numpy.array([[0,1,2],[3,4,5],[6,7,8]]) >>> a array([[0, 1, 2], [3, 4, 5], [6, 7, 8]]) >>> a[:,0],a[:,1],a[:,2] #no good (array([0, 3, 6]), array([1, 4, 7]), array([2, 5, 8])) >>> I