home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.pascal:7768 rec.games.programmer:5229 comp.sys.ibm.pc.misc:16244 comp.sys.ibm.pc.programmer:711
- Newsgroups: comp.lang.pascal,rec.games.programmer,comp.sys.ibm.pc.misc,comp.sys.ibm.pc.programmer
- Path: sparky!uunet!mcsun!sun4nl!utrcu1!infnews!ahoekstr
- From: ahoekstr@cs.utwente.nl (Andre D. Hoekstra)
- Subject: Re: Source of a little puzzle under MS-DOS TurboPascal wanted
- Message-ID: <1992Dec31.131824.19586@cs.utwente.nl>
- Sender: usenet@cs.utwente.nl
- Nntp-Posting-Host: rijn
- Organization: Twente University, Dept. WB/WA (NOT cs)
- References: <1992Dec30.162530.7112@delos.stgt.sub.org>
- Date: Thu, 31 Dec 1992 13:18:24 GMT
- Lines: 43
-
- In article <1992Dec30.162530.7112@delos.stgt.sub.org> stefanb@delos.stgt.sub.org (Stefan Bechtold) writes:
- >Hi !
- >
- >A friend of mine is looking for a puzzle; it's a little bit difficult
- >to describe but I'll try it.
- >This puzzle shuffles a display like those old 16 square plastic
- >puzzles.
- >and you have to put those squares in the right order)
- >
- >The program should also be able to solve the problem itself.
- >
- >The reason why he's looking for that program is that he wants to
- >write such a program himself and don't know exactly how to
- >make it (esp. the "self-solving" part...)
-
- Well, you should try and find something about a technique called
- backtracking (maybe you have heard of the 8-queens problem?) Any
- good book on programming techniques should help you out.
- Good Luck!
-
- >Stefan
-
- On the same subject, dlcox@bilbo.encore.com (David L. Cox) said:
-
- David>I saw an example of this on a 3b10 (If I remember right) at the Oklahoma
- David>State Fair. AT&T had put together an exhibit where they digitized a picture
- David>and scrambled it. You then used a touch screen to put the picture back together. (Hey guys, this was 5 years ago!)
- David>
- David>How did it solve the puzzle?
- David>
- David>They cheated. They just remembered every move made and reversed it. If you
- David>have a good enough memory, I guess that is a valid way to do it! :-)
- David>
- David>David
-
- Which is ofcourse a good way to solve a puzzle when you know the moves
- taken to scramble it; but you cannot get very far if you don't know and
- connot reconstruct these moves :-(
-
- Andre++
- --
- There is no reason for any individual to have a computer in | Andre Hoekstra
- their home. (Ken Olson, Ex-President Digital Equipment, 1977) | Enschede -- NL
-