home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18295 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  991 b 

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