Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Structural alg traversal #50

Closed
lgarron opened this issue Feb 18, 2014 · 1 comment
Closed

Structural alg traversal #50

lgarron opened this issue Feb 18, 2014 · 1 comment
Assignees

Comments

@lgarron
Copy link
Member

lgarron commented Feb 18, 2014

Many alg operations can be supported on "unflattened" algs (i.e. commutators and conjugates unexpanded).

  • Move count.
  • Total animation time (given time for each move token).
  • Puzzle state at a given position.
    • See Fix M/m moves. #46.
    • There's no reason we shouldn't be able to support algs with arbitrarily many moves (millions? trillions?), as long as the nested representation is concise.

It should be simple to write something to do this in general. It just requires something that can handle JSON traversal given handlers for the following nodes:

  • basic moves
  • groupings
  • commutators
  • conjugates
@lgarron lgarron self-assigned this Mar 6, 2014
@lgarron
Copy link
Member Author

lgarron commented Jul 5, 2014

This is implemented in alg.cube.makeAlgTraversal()

@lgarron lgarron closed this as completed Jul 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant