Coder Social home page Coder Social logo

cubesolver's Introduction

Solving Rubik's Cube with Lego Mindstorms

This is a proof-of-concept research project submitted as part of my dissertation project in partial fulfilment of the requirement for the degree of BSc Computer Science.

Requirements & Installation

This project requires Python 3 and Visual Studio Build Tools for the kociemba package. Third party packages used are:

colorama                -   colored printouts
ev3dev                  -   allows the EV3 to be used
ev3dev-lang-python      -   Python 3 on the EV3
kociemba                -   used as a fallback for solving

Run the Cube Solver

This software is in two main parts: the host computer, and the EV3. Technically it can all be run on the EV3, but it will take a ridiculously long time to do anything.

To run the host computer software, either run the main.py file in the Codebase directory, or use the batchfile. Both methods take the following arguments:

  • r - Connect to Robot
  • d - Generates the entire Database, unless a method is specified
  • c - Clear the entire database
  • h - half-turn generation/solve method
  • m - multiphase generation/solve method (will fallback to kociemba to guarantee solve if wanted)
  • t - tree solve
  • v - more verbose outputs

To run the EV3, run the main.py file in the robot directory with Python 3. The IP address of the Host Computer must be changed for the sockets to properly connect.

cubesolver's People

Contributors

worgarside avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.