| | |
sliding numbers project AI
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
we have a project in our class to design a sliding numbers game similar to this one:
http://www.eatmygames.com/gameinfo.asp?id=24puzzle
the only difference is that the number of blank spaces is user input (max=n/2 where n: no of elements in a row/column).
we have to design an algorithm to make the computer solve the puzzle on its own.
can we get some ideas for the AI part? we're totally stumped!
PS: I know this counts as homework, but I just need a hint for the algorithm. we can take it from there onwards.
http://www.eatmygames.com/gameinfo.asp?id=24puzzle
the only difference is that the number of blank spaces is user input (max=n/2 where n: no of elements in a row/column).
we have to design an algorithm to make the computer solve the puzzle on its own.
can we get some ideas for the AI part? we're totally stumped!
PS: I know this counts as homework, but I just need a hint for the algorithm. we can take it from there onwards.
These three links make for interesting reading...
http://www.gameboomers.com/wtcheats/pcSs/safecrac.htm
http://www.mathematische-basteleien.de/15puzzle.htm
http://www.cs.princeton.edu/courses/...s/8puzzle.html
The fact that you have slightly more blank spaces, than the original game ( which has only one blank space) should make life slightly easier.
http://www.gameboomers.com/wtcheats/pcSs/safecrac.htm
http://www.mathematische-basteleien.de/15puzzle.htm
http://www.cs.princeton.edu/courses/...s/8puzzle.html
The fact that you have slightly more blank spaces, than the original game ( which has only one blank space) should make life slightly easier.
*Voted best profile in the world*
![]() |
Similar Threads
- Final Year Project (Computer Science)
- Trouble writing code for arithmetic calculations of complex numbers (C++)
- Help With My Fy Project (C++)
- High School student need help for C++ on final project (C++)
- Using a class to add/delete/show numbers in a Link List (C++)
- Adding decimal numbers together? (C)
- School Project (C++)
Other Threads in the C Forum
- Previous Thread: seg fault when accessing the array
- Next Thread: calendar how mny days
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays asterisks binarysearch calculate changingto char character cm command copyimagefile cprogramme creafecopyofanytypeoffileinc database directory dynamic execv feet fgets file fork forloop framework function functions givemetehcodez grade graphics gtkwinlinux hacking histogram homework inches include incrementoperators input intmain() iso kernel keyboard km lazy license linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft mqqueue number oddnumber odf opendocumentformat opensource overwrite owf pdf performance pointer posix problem probleminc process program programming radix recursion recv recvblocked research reversing scanf scripting segmentationfault sequential socket spoonfeeding standard string student systemcall testing threads turboc unix user variable wab whythiscodecausesegmentationfault windowsapi






