Skip to main content

A CLI application for the 3x3x3 cube

Project description

cube-cli

A textual cli environment for manipulating a 3x3x3 cube and solving puzzles based on it.

Usage

cube [options] [file]

[file] is a saved cube from a previous session. If not specified, the cube is initialized to its solved state.

Options

--help

--version

Commands

Before you enter a command, the current state of the cube is printed in a textual format.

<moves>

A sequence of moves in standard cube move syntax. Case-insensitive. To specify a wide move, use a 'w' suffix.

^<moves>

A sequence of moves in standard cube move syntax. Case-sensitive. To specify a wide move, use either a lower-case face letter or a 'w' suffix.

solve

Return the cube to its initial solved position.

shuffle

Randomize the position of the cube.

undo

Undo the last previous command.

redo

If the last previous command was an undo, reverse its effect.

save [file]

Save the cube to a file. If [file] is not specified, save to the last file used for a load or save, or to cube.json in the current directory.

load [file]

Load a saved cube. If [file] is not specified, load from the last file used for a load or save, or to cube.json in the current directory.

help, ?

Print this command reference.

quit, q

Exit cube.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cube_cli-0.4.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cube_cli-0.4.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file cube_cli-0.4.2.tar.gz.

File metadata

  • Download URL: cube_cli-0.4.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for cube_cli-0.4.2.tar.gz
Algorithm Hash digest
SHA256 adf734c7e8dd774e3d45118a2f7f8d11b6a28b309cee3739f9349c870cff2b7e
MD5 83a67073e7d420dac7ae8b478bcbf121
BLAKE2b-256 3150c63c83666ac4e619d977128ce02013b111e89cb4240d0a0c21036f1d7e77

See more details on using hashes here.

File details

Details for the file cube_cli-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: cube_cli-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for cube_cli-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 99c5e05e3261d2600978df80be434b479b2796b8dfcededac193b37759ff2cff
MD5 cf7025e94c6f4fd0fb1c373f6958add6
BLAKE2b-256 91922d990d44595c41c49408d1d4d64af0a29dfb785ee90ac90e1b3a18ba37c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page