Rubik Scheme

Rubik Cube on Chicken Scheme
Login

This is a basic implementation of a Rubik's cube in Scheme, that supports any cube size, from 2x2 to infinity and beyond! It is based on a Python implementation called MagicCube (created by David W. Hogg and Jacob Vanderplas under GPLv2 license). It currently doesn't support 3D plotting and it is entirely text based.

Compile

Requirements

Commands

sh Fakemile.sh

Example (5x5)

$ ./main 10
...
λ move U 0 1    (move layer 0 parallel to face 'U, 90º clockwise)
λ move F 1 -2   (move layer 1 parallel to face 'F, 180º counter-clockwise)
λ move L 4 -1   (move layer 4 parallel to face 'L, 90º counter-clockwise)
λ print         (print cube)
λ randomize 10  (scramble n number of times)
...

Licence (GPLv3)

Copyright (C) 2020  Iván Ávalos <ivan.avalos.diaz@hotmail.com>, Sebastian Solano <spider27sebastian@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.