Categorygithub.com/spencerchubb/solver
repositorypackage
0.1.0
Repository: https://github.com/spencerchubb/solver.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

solver

A Rubik's Cube solver written in Go.

This repository has two parts:

  • A command line interface (CLI) that can be used on its own
  • A Go module that can be used in other Go projects

Using the CLI

  • Download cli/solve.exe
  • Open the folder containing solve.exe in a terminal
  • Run a command like the following
./solve -scramble "R U R' F' R U R' U' R' F R2 U' R' U'" -moves UFR -solutions 300
./solve -scramble "R U R' F' R U R' U' R' F R2 U' R' U'" -moves UFDBLR -solutions 10

Using the Go module

Get latest version

go get github.com/spencerchubb/solver

Get specific version (for example, v0.0.1)

go get github.com/spencerchubb/[email protected]

Disclaimer

The API may change if I feel like it. Feel free to use it in your code.