Skip to content

jhculb/Rubiks-Cube-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rubiks cube application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published