Features for testing the presence of rubiks

class sage.features.rubiks.Rubiks(*args, **kwds)[source]

Bases: JoinFeature

A Feature describing the presence of the cu2, cubex, dikcube, mcube, optimal, and size222 programs from the rubiks package.

EXAMPLES:

sage: from sage.features.rubiks import Rubiks
sage: Rubiks().is_present()  # optional - rubiks
FeatureTestResult('rubiks', True)
>>> from sage.all import *
>>> from sage.features.rubiks import Rubiks
>>> Rubiks().is_present()  # optional - rubiks
FeatureTestResult('rubiks', True)
sage.features.rubiks.all_features()[source]
class sage.features.rubiks.cu2(*args, **kwds)[source]

Bases: Executable

A Feature describing the presence of cu2.

EXAMPLES:

sage: from sage.features.rubiks import cu2
sage: cu2().is_present()  # optional - rubiks
FeatureTestResult('cu2', True)
>>> from sage.all import *
>>> from sage.features.rubiks import cu2
>>> cu2().is_present()  # optional - rubiks
FeatureTestResult('cu2', True)
class sage.features.rubiks.cubex(*args, **kwds)[source]

Bases: Executable

A Feature describing the presence of cubex.

EXAMPLES:

sage: from sage.features.rubiks import cubex
sage: cubex().is_present()  # optional - rubiks
FeatureTestResult('cubex', True)
>>> from sage.all import *
>>> from sage.features.rubiks import cubex
>>> cubex().is_present()  # optional - rubiks
FeatureTestResult('cubex', True)
class sage.features.rubiks.dikcube(*args, **kwds)[source]

Bases: Executable

A Feature describing the presence of dikcube.

EXAMPLES:

sage: from sage.features.rubiks import dikcube
sage: dikcube().is_present()  # optional - rubiks
FeatureTestResult('dikcube', True)
>>> from sage.all import *
>>> from sage.features.rubiks import dikcube
>>> dikcube().is_present()  # optional - rubiks
FeatureTestResult('dikcube', True)
class sage.features.rubiks.mcube(*args, **kwds)[source]

Bases: Executable

A Feature describing the presence of mcube.

EXAMPLES:

sage: from sage.features.rubiks import mcube
sage: mcube().is_present()  # optional - rubiks
FeatureTestResult('mcube', True)
>>> from sage.all import *
>>> from sage.features.rubiks import mcube
>>> mcube().is_present()  # optional - rubiks
FeatureTestResult('mcube', True)
class sage.features.rubiks.optimal(*args, **kwds)[source]

Bases: Executable

A Feature describing the presence of optimal.

EXAMPLES:

sage: from sage.features.rubiks import optimal
sage: optimal().is_present()  # optional - rubiks
FeatureTestResult('optimal', True)
>>> from sage.all import *
>>> from sage.features.rubiks import optimal
>>> optimal().is_present()  # optional - rubiks
FeatureTestResult('optimal', True)
class sage.features.rubiks.size222(*args, **kwds)[source]

Bases: Executable

A Feature describing the presence of size222.

EXAMPLES:

sage: from sage.features.rubiks import size222
sage: size222().is_present()  # optional - rubiks
FeatureTestResult('size222', True)
>>> from sage.all import *
>>> from sage.features.rubiks import size222
>>> size222().is_present()  # optional - rubiks
FeatureTestResult('size222', True)