【源码】魔方模拟器与求解器version 1.9.0.0

在这里插入图片描述

本程序能够产生一个任意尺寸的随机打乱的立方体,可以通过手动操作或者由计算机求解进行魔方复原。

This program allows you to generate arandomly scramble cube of arbitrary dimension which can then be manipulatedmanually or solved by the computer.

可以通过网络摄像机(3x3x3)输入自定义的状态,或者手动定义立方体每一面的颜色。

You can also input your own state using awebcam (3x3x3), or simply enter the colors of each facelet (2,3,4x.x.).

本程序包含的计算机求解方法有:

  1. 用于2x2x2的God算法;
    
  2.  用于3x3x3的Thistlethwaite45 (T45)算法;
    
  3.  Layer-by-Layer算法,一般适用于初学者,虽然该算法简单明了,但相对T45的效率更低,求解步骤更多;
    
  4.  用于4x4x4的423T45算法;
    
  5. 反逆序恢复算法Inverse Scramblefor all cubes。
    

以上所有算法的理论与设计描述都包含在相应的PDF文档中。

algrot.m - calculates how an algorithmchanges under rotation of the cube.
digrub.fig - GUI figure main program
digrub.m - GUIDE-generated m-file to go with digrub.fig.
editstate.fig - GUI figure for manual input program
editstate.m - GUIDE-generated m-file to go with editstate.fig.
findpeeks.m - Peek-finder that is used to find the cube’s position in a webcamimage.
GetCorners.m - calculates the corner permutation/orientation of a given 3x3x3cube.
GetCorners2.m - calculates the corner permutation/orientation of a given 2x2x2cube.
GetEdges.m - calculates the edge permutation/orientation of a given 3x3x3cube.
GetFacelets.m - converts a state in the orientation/permutation representationto the facelet repr.
Ind2State.m - converts an index to a state
move2rub.m - converts a move of the form ‘x11’ to Rubik’s Code ‘B’.
parity.m - calculates the parity of a permutation.
rub2move.m - converts a move in Rubik’s code to axile ‘x11’ form.
rubcheck.m - checks the validity of a 2x2x2 or 3x3x3 state.
rubcross.m - searches for a cross on the cube.
rubgen.m - generates a cube
rubinfo.m - returns information about the cube state
rubopt.m - optimizes a move-sequence
ruborient.m - orients the cube
rubplot.m - plot a 3D image of the cube
rubrot.m - apply a move to the cube
rubrot2.m - rotate the entire cube
rubsolve.m - solve the cube using a layer by layer approach
Solve45.m - solve the cube using T45
Solve222.m - find God’s Algorithm to a 2x2x2 cube
Solve444.m - find a solution to any 4x4x4 cube.

作者Joren Heit电子邮箱:jorenheit@gmail.com

源码下载地址:

http://page5.dfpan.com/fs/cl4c4j02e2c1c2a9166/

更多精彩文章请关注微信号:在这里插入图片描述

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值