回复:(sliant)[讨论]尝试写的一个魔方的模拟器程序...
<P>已经支持脚本了。支持的记法还不全面,不过可以自己添加、定义,上面有讲怎么做。</P><P>花了不少时间,短期内可能再抽不出时间来完善这个程序了。</P>
<P>感谢cube_master和大烟头给的资料,感谢老猫给我的例程,感谢roundy给的3d原理。</P>
<P>祝大家顺心如意,我要睡觉去了!bye</P>
回复:(sliant)[讨论]尝试写的一个魔方的模拟器程序...
我与你兴趣相同。我已经用纯java写了一个虚拟魔方(可解2-8阶)和一个虚拟五魔方<br>(可自动解,两种解法),均采用三维模拟。可自动解的五魔方为首创。3阶魔方平均<br>可在68步之内解得,6阶魔方平均可在530步之内解得。五魔方平均可在206步之内解<br>得。可惜我无法将之汉化,因为我没有汉化环境。欢迎测试,欢迎指教,连接如下<br><br>http://www.geocities.com/hua_jz/index.html<br><br>测试版中有些功能被锁住了,但是2阶和3阶初级解法完全工作。正版须买执照。须<br>安装java虚拟环境J2SE JRE1.4或高级。可预览界面。 <p> </p><p> Megaminx 的 JAVA 软件的面世,使大家在网上直接浏览含 Megaminx 的网页成为可能。<br/>本人谨在这里向 rubikmaster 先生表示感谢和支持!</p><p> (可自动解的 JAVA 五魔方) 可能是您 首创。但是(可自动解的 其他语言 五魔方)<br/>好象早已存在多年了。 如果我说错了,那或许说明 您 很早以前就开发了 五魔方 软件。</p><p> 如果 rubikmaster 先生感觉对于 汉化 Megaminx 的 JAVA 软件有困难,本人愿意帮助<br/>您汉化,只是本人 English 水平很烂,需要您提供一份准确的 (English -> 中文) 对照<br/>翻译好的文本,以便本人汉化。 附:文本格式如下:</p><p>File 文件<br/>Edit 编辑<br/>Help 帮助<br/>save 保存<br/>exit 退出<br/>about 关于<br/>English 英文<br/>Chinese 中文<br/>computer 计算机<br/>These are sheep. 这是些羊。</p><p>等等。</p><p> 对于长句子,也要 对应 长句整体 翻译 (注:不要 逐词 翻译,必须 整句翻译)。<br/> <br/></p> <p> </p><p> rubikmaster 先生可以通过以下两种途径进行汉化:</p><p> 1.直接发给我 minxseqviewer.jar ,本人直接汉化其内部 *.class 文件;(临时方案)<br/>(此方案汉化工作烦琐,而且仅能汉化一个版本)</p><p> 2.压缩发给我 Megaminx 软件中所有 *.Java 及 相关文件,本人汉化源文件,然后发给<br/>您进行修改编译 以及 升级维护;(终极方案)(此方案工作量小,软件可以终身升级维护)</p><p><br/> rubikmaster 先生可以通过 Email: <a href="mailto:ggglgq@sina.com.cn">ggglgq@sina.com.cn</a> 与本人联系。</p><p></p><p></p>回复:(ggglgq rubikmas...
<font lang="ZH-CN" face="MS Song"><p>先谢谢你乐意帮这个忙,但我不建议将我的软件直接汉化,我更倾向于将我的说明文件翻译成中文,以方便大家使用,有兴趣的魔友不妨试一试。现将英文说明粘贴如下:<br/><h3>Introduction</h3><br/><p><br/>Most people would think that Megaminx is harder to solve than Rubik's Cube because it has more <br/>faces and pieces? This software shows you that Megaminx is indeed easier to solve than Rubik's Cube. Why is it so? <br/>Becuase Megaminx got more faces. When you are fixing the first few layers, you got plenty of free layers which give you lots <br/>of freedom to adjust the position of your target pieces. You can fix much of the Megaminx without even learning a single <br/>formula. But this is not the case for Rubik's Cube, once the first layer is fixed, the only free layer is the opposite layer. <br/>The real difficulty of solving Megaminx is the last layer. Fortunately, there is a simple elegant method to solve the last <br/>layer. This method can be used to solve Rubik's Cube as well. The two methods embedded in Megaminx Solver are designed for 12 <br/>colored Megaminx, but it can be easily modified to solve 6 colored Megaminx in which parity problem may arise. This is a <br/>little challenge left for the readers.</p></font><br/><h3>Introduction</h3><br/><p><br/>Most people would think that Megaminx is harder to solve than Rubik's Cube because it has more <br/>faces and pieces? This software shows you that Megaminx is indeed easier to solve than Rubik's Cube. Why is it so? <br/>Becuase Megaminx got more faces. When you are fixing the first few layers, you got plenty of free layers which give you lots <br/>of freedom to adjust the position of your target pieces. You can fix much of the Megaminx without even learning a single <br/>formula. But this is not the case for Rubik's Cube, once the first layer is fixed, the only free layer is the opposite layer. <br/>The real difficulty of solving Megaminx is the last layer. Fortunately, there is a simple elegant method to solve the last <br/>layer. This method can be used to solve Rubik's Cube as well. The two methods embedded in Megaminx Solver are designed for 12 <br/>colored Megaminx, but it can be easily modified to solve 6 colored Megaminx in which parity problem may arise. This is a <br/>little challenge left for the readers.<p><p><br/>To view the applet, your browser must support JRE1.4 (Java Runtime Environment) or higher. You can<br/><a href="<a href="http://java.sun.com/javase/downloads/index.jsp">download">http://java.sun.com/javase/downloads/index.jsp">download</a> J2SE JRE</a> from Sun. <br/>After the download, you need to install JRE on your system by following the installation instruction.</p><p><p><br/><B>Main features of Megaminx Solver </B></p><p><uL><br/><LI>A twist can be triggered by a mouse click or a mouse drag. Clicking a center cube with the left mouse button will trigger <br/> an anti-clockwise turn of 72 degree, while clicking a center cube with the right mouse button will trigger a clockwise turn of 72 degree. <br/> Dragging a non-center cube to its adjacent non-center cubes will also trigger a turn of 72 degree along the dragging direction only <br/> if the mouse moves on the same face.<br/><LI>The virtual dodecahedron can be viewed from any angle by dragging the mouse on center cubes or on the background area even when a twist is in action. <br/> It is a true 3D simulation.<br/><LI>Each face has been labelled with a letter (N, A, B, C, D, E, S, F, G, H, I, J). Face labels can be turned on/off.<br/><LI>Standard definition of a move/twist using face labels is given and has been incorporated in the solver.<br/><LI>Two algorithms are embedded, one solves the puzzle in about 266 moves and the other solves the puzzle in about 206 moves. <br/> The solution sequence will be shown in the sequence executor. Both algorithms are human understandable.<br/><LI>7 navigation buttons are provided to allow a user to navigate the solution sequence back and forth. A track counter will display <br/> the number of the current move and the length of the solution sequence.<br/><LI>While a solution sequence is being navigated by "Forward" or "Back" buttons, the next move will be shown in a diagram which can <br/> be easily understood.<br/><LI>While a solution sequence is being navigated, cubes that are being targeted in current operation will be highlighted, <br/> which helps the user to understand how highlighted cubes are fixed.<br/><LI>While a solution sequence is being navigated, a user can hide all cubes that are irrelevant to the current step which <br/> will be fixed in later steps and therefore can be freely disturbed, only cubes that have been fixed or are being <br/> fixed in current step are shown in full colors. <br/><LI>While a solution sequence is being navigated, a step indicator will show what is the current step and the message window <br/> will explain how this is done.<br/><LI>Center colors are configurable. It allows a user to paint the virtual MEgaminx so that it matches the colors of a physical <br/> Megaminx (with 12 colors). The solver can instruct the user to solve his/her Megaminx puzzle step by step. <br/> It provides an opportunity for a user to solve his/her own Megaminx without even learning any algorithm or method.<br/><LI>The sequence executor allows a user to enter his/her sequence and get it executed. It provides an opportunity for a user <br/> to develop his/her own formula. It also provides an opportunity for users to exchange their formulae through the sequence executor.<br/><LI>The solver also provides functions such as scrambling the virtual MEgaminx using randomly generated sequence, restoring the Megaminx to <br/> solved position instantly, adjusting puzzle size and adjusting rotation speed.<br/></UL></p><p><br/><p><br/><h3>Terminology</h3></p><p>A <i>single turn</i> means a face / layer being twisted by 72 degree around its center. Each face has been given a label<br/>(N, S, A, B, C, D, E, F, G, H, I, where N means north and S menas south). Face labels are fixed, however face colors <br/>can be changed through painting.<br/>A <i>move</i> or <i>twist</i> can be represented using face characters and turn symbols (', 1, 2, -1, -2)<br/>according to the following rules:</p><p><ul type="disc"><br/> <li>A single face character represents a single turn clockwise of that face. <br/> <li>A single face character followed by 2 represents a double turn clockwise of that face. <br/> <li>A single face character followed by ' or -1 represents a single turn anti-clockwise of that face. <br/> <li>A single face character followed by '' or -2 represents a double turn anti-clockwise of that face. <br/></ul></p><p>We adopt terminology suggested by Professor Kurt Endl. We think the dodecahedron as a globe and refer corners and edges according to their location relative to north pole and south pole. In Megaminx Solver, the center labelled with "N" <br/>will be treated as North Pole, and the center labelled with "S" will be treated as "South Pole". Centers labelled with "A", "B", <br/>"C", "D", "E" are located at northern hemisphere and centers lablled with "F", "G', "H", "I", "J" are located at southern hemisphere. The following diagrams illusitrate the classification of corners and edges.</p><p><h3>How to play Megaminx Solver</h3></p><p>A move or twist can be triggered by a mouse click or a mouse drag. <br/><ul><br/> <li>Clicking a center cube with the LEFT mouse button will trigger an ANTI-CLOCKWISE turn.<br/> <li>Clicking a center cube with the RIGHT mouse button will trigger a CLOCKWISE turn.<br/> <li>Dragging a non-center cube to its adjacent non-center cubes will also trigger a turn long the dragging<br/> direction if the mouse moves on the same face.<br/></ul></p><p>The megaminx can be viewed from different angles by rotating the whole megaminx. To rotate the whole megaminx,<br/>just drag on any center cube or drag the mouse on the background area (the area that is<br/>not covered by the megaminx).</p><p><p><br/>Some useful buttons under Configure:</p><p><ul><br/> <li>Cube Size -- adjust the size of the megaminx<br/> <li>Rotating Speed -- adjust rotating speed<br/> <li>Face Label -- turn the face label on or off<br/> <li>Hide/Show -- hide or show cubes that are irrelavant to the current step. It is only effective when an animated solution<br/> is being reviewed. When "hide" is active, only cubes that are fixed or targeted will be shown, cubes that are <br/> irrelavant to the current step and hence will be dealt with in a later step are hidden (shown with gray color).<br/></ul></p><p><p><br/>Some useful buttons under Tools:<br/><ul><br/> <li>Play -- play the megaminx by clicking or dragging the mouse<br/> <li>Paint -- paint the megaminx with colors to match the colors on your megaminx.<br/> <li>Scramble -- scramble the megaminx using randomly generated sequences<br/> <li>Restore -- restore the megaminx to its solved positition (each face has a solid color).<br/> <li>Solve -- solve the megaminx using selected method, animated solution can then be viewed with the<br/> navigation buttons, targeted cubies will be hightlighted, the next move will be shown at the <br/> bottom left corner of the megaminx panel.<br/></ul></p><p>To execute a sequence, first type in your sequence in the text field below the cube panel, then<br/>press the "Enter" key. The sequence entered must conform the convention stated below.</p><p><p></p><p><h3>How to paint Virtual Megaminx</h3></p><p>Select 'Paint' under 'Tools' to enter painting model. It is a good practice to start painting on a solved megaminx.<br/>The first thing you need to do is to adjust center colors.<br/>Right click a color button below the tree panel to open the color chooser. Select a color that matches<br/>the corresponding center color on your megaminx. Once you are happy with all center colors, then you can start to<br/>paint edges and corners. Left click a color button to select the color as the active painting color, a small pentagon<br/>filled with that color will be drawn on the bottom left corner of the megaminx panel. Click a face on any edge cube<br/>or corner cube to paint that face with the active color. Note that you cannot paint a center face using this method.<br/>The center color can only be changed by right clicking the corresponding color button. Once you finish painting all<br/>cubes, you can select 'Solve' under 'Tools' to ask the simulator to solve it. If the color configuration is invalid,<br/>it will return to painting model immediately. Double check each face, and make sure all colors match the corresponding<br/>colors on your megaminx. To exit the painting model at any time, select "Play", "Scramble", "Restore" or "Solve" under "Tools".<br/><h3>Screen shots of Virtual Megaminx</h3></p><p><h3>Jeff's method</h3></p><p>This is the simplest method as far as I know. It solves the megaminx in 266 moves on average. <br/>The Megaminx is solved according to the following order:</p><p><OL><br/> <LI>Fix south pole edges<br/> <LI>Fix four south pole corners<br/> <LI>Fix four southern equatorial edges<br/> <LI>Fix the last south pole corner<br/> <LI>Fix the last southern equatorial edge<br/> <LI>Fix southern equatorial corners<br/> <LI>Fix middle equatorial edges<br/> <LI>Fix four pairs of northern equatorial corners and edges, leaving the fifth pair as key holes<br/> <LI>Fix north pole edges and the last northern equatorial edge<br/> <LI>Place north pole corners and the last northern equatorial corner (ignore orientations)<br/> <LI>Fix orientations of north pole corners and the last northern equatorial corner <br/></OL></p><p><h3>Hua's method</h3><br/>Hua's method improves Jeff's method by fixing south pole corners and southern equatorial edges in pairs and <br/>fixing southern equatorial corners and middle equatorial edges in triples and also<br/>fixing northern equatorial corners and edges in pairs. It solves the megaminx in 206 moves on average. <br/>According to Hua's method, the Megaminx is solved in the following order:</p><p><OL><br/> <LI>Fix south pole edges<br/> <LI>Fix south pole corners and southern equatorial edges in pairs<br/> <LI>Fix southern equatorial corners and middle equatorial edges in triples<br/> <LI>Fix four pairs of northern equatorial corners and edges<br/> <LI>Fix north pole edges and the last northern equatorial edge<br/> <LI>Place north pole corners and the last northern equatorial corner (ignore orientations)<br/> <LI>Fix orientations of north pole corners and the last northern equatorial corner <br/></OL></p><p><h3>Contact </h3></p><p>Megaminx Solver was developed by Jiuzhao Hua. All rights reserved. All queries should be directed to <a href="mailto:hua_jz@hotmail.com">hua_jz@hotmail.com</a>.</p><p><p><br/>Last updated on 1 August 2006.</p> 支持 ?????看不懂啊~~
页:
1
[2]