home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!erc
- From: erc@netcom.com (Eric Smith)
- Newsgroups: comp.lang.c++
- Subject: Re: Intersting Data Structure
- Message-ID: <1992Dec22.034816.28702@netcom.com>
- Date: 22 Dec 92 03:48:16 GMT
- References: <BzMpBt.2Ip@cmcl2.nyu.edu>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Lines: 12
-
- In article <BzMpBt.2Ip@cmcl2.nyu.edu> reznick@acf3.nyu.edu (Daniel Reznick) writes:
- >Can anyone suggest a feasable Data Structure/Class Hierarchy to
- >implement a Rubik's Cube?
-
- You mean to have it solve the puzzle, or to have it present the puzzle?
- If just to solve the puzzle, it is trivial, and you don't even need C++
- because you can just use fixed arrays and sequence through permutations
- till success.
-
- But if you want to present the puzzle as a picture on the screen and let
- the user manipulate it, C++ is better, and you should look for some good
- graphics libraries and/or user interface libraries.
-