Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chamini2/rubiks_cube

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rubiks_cube

Rubik's cube solver using PDB, developed in C++.

Solution

  • We'll be using three (3) different PDBs:
    • A PDB showing the distance from any given configuration of the eight (8) corners of the cube to the desired configuration (goal) of the corners.
    • A PDB showing the distance from any given configuration of six (6) (or seven (7) or eight (8)) edges of the cube to the desired configuration (goal) of said edges.
    • A PDB showing the distance from any given configuration of the remaining six (6) (or five (5) or four (4)) edges of the cube to the desired configuration (goal) of said edges.
  • IDA*

The cube in ASCII art

front  = white
back   = yellow
right  = red
left   = orange
top    = blue
down   = green
       ____________
      /   /   /   /\
     /___/___/___/  \
    /   / T /   /\  /\
  L/___/___/___/  \/  \B
  /   /   /   /\  /\  /\
 /___/___/___/  \/  \/  \
 \   \   \   \  /\R /\  /
  \___\___\___\/  \/  \/
   \   \ F \   \  /\  /
    \___\___\___\/  \/D
     \   \   \   \  /
      \___\___\___\/

About

Rubik's cube solver using PDB, developed in C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.