Location:
Search - puzzle 8 java
Search list
Description: 其中readme是整个程序的要求,1.txt是测试程序,hw3.java是编写的程序。主要是为了实现8-puzzle问题(手机上都有的那个小游戏,9个格子,8个数字,让你移动到一种终止状态)。-readme which is the entire process, 1.txt test procedures hw3.java preparation procedures. Major is to achieve 8-puzzle (the phone is the small game, nine lattice, the eight figures, you moved to the termination of a state).
Platform: |
Size: 106496 |
Author: 顾小军 |
Hits:
Description: This an 8-puzzle solver. You input the current state of your annoying little 8 puzzle and it ll use the Hillclimbing Algorithm to calculate a list of moves which you can use to solve the puzzle. It is written in C++ with an interactive text mode based interface. Enter numbers 0-8. Keep your pathlength short as you can, and make the number of nodes between 1 and 65536 (on an x86 machine).
Platform: |
Size: 5120 |
Author: 王涛 |
Hits:
Description: 8puzzle game by Java
This program can automatically
solve 8 puzzle games with
Manhattan approach and show each
step.
Platform: |
Size: 16384 |
Author: Kevin Tuan |
Hits:
Description: 拼图魔板由4×4或3×3个方格组成,这样就增加拉用户的选择性,其中一个格子是空的。对于4×4的魔板,其它格子里随机放置15个编号为1-15的方块; 对于3×3的魔板,其它格子里随机放置8个编号为1-8的方块。
用鼠标任何与空格子相邻的方块可以把该方块移入空格。通过不断地移动方块,可将方块一行一行按数字顺序排列。
同时也可以使用图像来代替数字,对于4×4的魔板,将一个图像分成4×4个方块,打乱顺序后,放入魔板,并将其中一个方格置为空。最终目标是通过移动方块恢复为原始图像。
-Magic puzzle board by the 4 × 4 or 3 × 3 grid composed of months, so that the user pull on increasing the selective, one of which lattice is empty. For 4 × 4 magic board, other cells were randomly placed 15 yard No. 1-15 of the box for the 3 × 3 magic board, other cells were randomly placed yard No. 8 of the box for 1-8. With the mouse any adjacent sub-spaces can box the box into space. By continuously moving box, box line by line can be in numerical order. At the same time can also use images to replace the figures, for the 4 × 4 magic board, an image will be divided into 4 × 4 box, upset the order, the Add magic board, and will buy one box is empty. Ultimate goal is to restore the box by moving the original image.
Platform: |
Size: 83968 |
Author: zoushasha |
Hits:
Description: This an example of solving 8puzzle problem by computer-This is an example of solving 8puzzle problem by computer
Platform: |
Size: 2048 |
Author: ersin 莽elik |
Hits:
Description: puzzle 8 games for java source
Platform: |
Size: 7168 |
Author: tas |
Hits:
Description: AI(人工智能)课程的作业,要求用java语言 随即生成8迷宫问题,然后用dfs解决,请大家参考-AI (Artificial Intelligence) program demands of their workers using java language then generate the eight maze problems, and then use dfs resolved, please refer to the
Platform: |
Size: 3072 |
Author: alex |
Hits:
Description: 8数码问题的Java求解,采用A*算法。数据结构采用的Vector<int[]>。输出为"no solution"或一系列表示求解过程的字符串。
某些30步的测试样例需要半分钟左右,但是绝对是正确解~~万望您能不吝点滴时间耐心等待……orz thnx~~
我用的启发函数计算了现在的网格距离目标网格还有多远。
具体算法是,将每一格中的数字的坐标与其应该在的坐标的差加到一起,得到这个最终值h(x)
也就是Manhattan_Distance
源码使用方法:建立Java Project后,分别建立三个同名的.java文件,将源码分别复制过去然后编译运行即可。-a source code that solves the 8 puzzle problem. it uses A-star algorithm, and a major data structure of Vector<int[]>. The output of the program would be "no solution" or a series of strings representing the moves during the solution.
Well, some samples need to be proceeded for around 30 seconds, but the program per se is indeed correct and will ultimately generate the shortest solution. so if u encounter such occasion plz jst wait for a while tho~~~ thnx~!!
the heuristic function, say h(x), in this source code is the sum of the Mahattan Distance of each block from its destination block.
How to use: build a Java Project, and create three .java files with the same names in the .zip file accordingly, and copy the source from the .zip file and just compile and run~~!
have fun thnx~!
Platform: |
Size: 669696 |
Author: Siegfried |
Hits:
Description: This project solve 8 puzzle with breadth first search. I wrote this program for Artificial Intelligence lesson.
Platform: |
Size: 35840 |
Author: somatco |
Hits:
Description: 用java写的一个解8-puzzle直到n-puzzle的软件,会清晰的显示步骤和算法。使用的是ai中的一个算法-Using java to write an 8-puzzle solution until the n-puzzle software, will clearly show the steps and algorithms. Use of an algorithm for ai
Platform: |
Size: 2073600 |
Author: 钱祥隽 |
Hits:
Description: To solve 8-puzzle problem using JAVA.
Platform: |
Size: 16384 |
Author: ram |
Hits:
Description: 这个程序是从广度优先搜索,深度优先搜索,A算法以及A算法等多方面算法来解决八数码问题.zip-8-puzzle A* BFS DFS MFC
Platform: |
Size: 3769344 |
Author: benson |
Hits:
Description: java拼图applet 1-8数字拼图-java puzzle applet 1-8 number puzzle
Platform: |
Size: 9216 |
Author: wanggenyou |
Hits:
Description: (1).能够实现简单的小游戏智能拼图,所设计的是数字智能拼图,包括初级和高级两种玩法;
(2).初级三行三列,包括数字1——8,和一个活动按钮,高级四行四列,包括数字1——15和一个活动按钮;
(3).游戏开始,数字随机排列,玩家把数字按顺序1——8或1——15排列起来(行排列)就算成功过关;
(4).此游戏为休闲娱乐小游戏。
-(1). To achieve a simple smart puzzle game, designed for digital intelligent puzzles, including the junior and senior two games are played (2). Primary three rows of three, including the number 1- 8, and an activity button, and senior four lines of four, including the number 1- 15 and an event button (3). game start, digital random arrangement, the number of players in order 1- 8 or 1- 15 line up (rows) Even if successful clearance (4). This game is a recreational game.
Platform: |
Size: 8192 |
Author: 向云洲 |
Hits:
Description: A star algoritm for 15-puzzle
Platform: |
Size: 28672 |
Author: elham |
Hits:
Description: 数字拼图游戏的源代码,java可以随意拍好1-8数字方块,然后自动按顺序拍好。-Digital jigsaw puzzle of the source code, java free to take a good 1-8 digital box, and then automatically make a good sequence.
Platform: |
Size: 3072 |
Author: zhang |
Hits:
Description: 基于A星算法的8数码问题Java程序源代码-Java source code based on the A star algorithm Eight Puzzle
Platform: |
Size: 12288 |
Author: Ian_Wong |
Hits:
Description: this program is written in java language
and it s simulating 8 puzzle tile
hope you enjoy it
Platform: |
Size: 5120 |
Author: sajjad |
Hits:
Description: 8puzeel program by java-8puzeel program by java
Platform: |
Size: 193536 |
Author: may |
Hits:
Description: 八数码问题的爬山法,首选爬山法,随机重启爬山法,退火算法的实现以及比较。(This code solve 8-puzzle problem using hill climbing and simulated annealing.
And then I compare with each other.)
Platform: |
Size: 450560 |
Author: 情杀
|
Hits: