Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiaokang2022/intelligent-magic-cube
A variety of intelligent search algorithms visually restore the 3D Magic Cube
https://github.com/xiaokang2022/intelligent-magic-cube
3d python tkinter tkintertools
Last synced: 3 months ago
JSON representation
A variety of intelligent search algorithms visually restore the 3D Magic Cube
- Host: GitHub
- URL: https://github.com/xiaokang2022/intelligent-magic-cube
- Owner: Xiaokang2022
- License: mit
- Created: 2024-04-03T18:23:38.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-23T01:58:22.000Z (10 months ago)
- Last Synced: 2024-04-23T15:08:42.870Z (10 months ago)
- Topics: 3d, python, tkinter, tkintertools
- Language: Python
- Homepage: https://xiaokang2022.blog.csdn.net/article/details/136768000
- Size: 823 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Intelligent Magic Cube 🚀
A variety of intelligent search algorithms visually restore the 3D Magic Cube.
![](./preview.png)
> [!NOTE]
> This program is implemented by `tkinter` in combination with the third-party library [`tkintertools`](https://github.com/Xiaokang2022/tkintertools). `tkintertools` is a third-party library developed by me, I hope you will support me a lot!## Star History
## How to use
### Before use
> [!IMPORTANT]
> Make sure your Python version is **3.12** or greater.### Install dependency
Install the third-party library tkintertools:
```sh
pip install tkintertools==2.6.21.1
```or
```sh
pip install -r requirements.txt
```### One last step
Run the `main.py`, and then, have fun! 😁
## Brief introduction
### List of algorithms
| BFS | DFS | UCS | A/A* | HC | REV |
| :-----------: | :---------: | :----------: | :--------: | :-----------: | :-------------------------: |
| Breadth First | Depth First | Uniform Cost | A / A Star | Hill Climbing | Not Algo, reverse operation |### Evaluation functions
| CBSV | ECLD | MHT | HM | MKVSK | h* |
| :-------: | :----: | :-------: | :-----: | :-------: | :-----------------------: |
| Chebyshev | Euclid | Manhattan | Hamming | Minkowski | Ideal evaluation function |### Customized actions
| L | R | U | D | F | B |
| :---: | :---: | :---: | :---: | :---: | :---: |
| Left | Right | Up | Down | Front | Back |### Some operations
* Hold down the left mouse button and drag to rotate the Rubik's Cube;
* Hold down the right mouse button and drag to move the Rubik's Cube;
* Scroll the mouse wheel to zoom in and out of the Rubik's Cube;> [!WARNING]
> Some of the pictures and other resources involved in the project come from the Internet and are not used for commercial purposes.
> Please contact me for infringement: [email protected]---
For illustrated tutorials, see: https://xiaokang2022.blog.csdn.net/article/details/136768000
For an introductory video, see: https://www.bilibili.com/video/BV1Gt421j7Sx/