Code Monkey home page Code Monkey logo

rubiks-cube-solver's Introduction

Rubiks Cube project

Goals

This project aims to create website with a Rubiks cube application, with solvers based on traditional methods and some AI solvers as well.

The Project Roadmap

  1. Develop a C++ Rubiks cube, of NxN 'dimension', which has all of the required manipulations, has an API, etc.
  2. Create Docker website
  3. Develop Python code to interface between a user and the Cube, including graphical representations.
  4. Develop Python/C++ based traditional solvers (i.e. algorithmic)
  5. Develop AI solvers (Keras/Tensorflow)

Current Progress

  1. Cube development [Cube.cpp]:
  2. Representation established [constructor/destructor]
  3. Printing to terminal [DisplayInTerminal]
  4. Front rotation (CW) implemented [Front]
  5. Front/Back established [Front, Back]
  6. Top/Bottom established [Top, Bottom]
  7. Interface for development established [IOfunctions.cpp]
  8. Check if solved code [IsSolved]
  9. Left/Right established [Left, Right]
  10. Established Middle Vertical and Horizontal rotations

To-Do list:

  1. Cube development [Cube.cpp]:
  2. (Low priority, implement check if broken in ExecuteCubeDefinitions)
  3. Develop API
  4. Visualisation code for the cube - python?
  5. Website development
  6. Docker environment
  7. Website development

Inefficiency list

  1. Rotate only acts on mFace, could change it to work on any face like Spiral, so that it can act on mMiddleFace in MiddleVertical & MiddleHorizontal
  2. Possible: Instead of iterating through a face, could load values into row vector and iterate through these (i.e. in the MiddleVertical replacement steps)?
  3. Spiral &c, may have isNotInmTempFace removed?
  4. RowCalcFormatting do you need break after return?
  5. MiddleVertical & MiddleHorizontal swap mMiddleFace & mFace roles in early lines to remove need to switch?
  6. MiddleVertical & MiddleHorizontal replacement replace only row not face?
  7. Possible (with major efficiency gains & major recoding): Store mCube, prespiraled. I.e. in constructor spiral it.
  8. Rotating Horizontal only needs to initialise centre negative values once?
  9. Do I need mMiddleFace?
  10. Terminal Display store each line in string and print?

Possible bug list

  1. MiddleVertical & MiddleHorizontal use integers above mCube max size, possible integer overflow - soln negative mcube face instead?

Known bug list

  1. entering 2 into dimension input {IOfunctions} loops infinitely
  2. Sim above: Input handling is off. dim=mh3 gives infinite loop
  3. 1x1 cubes render incorrectly & probably need an edge case for this

rubiks-cube-solver's People

Contributors

smexor avatar jhculb avatar

Watchers

 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.