![]() |
|
[Java] Sliding Puzzle Game (Need help) - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] Sliding Puzzle Game (Need help) (/showthread.php?tid=6110479) |
Sliding Puzzle Game (Need help) - RainbowDragon - Sep 20, 2020 Hi everyone, trying to help someone out with the ‘Puzzle of fifteen’ Tiles Game. I have zero knowledge (but learning), and the deadline is a few days away. I dont think we'll be able to solve this by ourselves in the time left, we're looking for someone to complete this. I need someone to write: SlidingPuzzle, Switch, reset, shuffle, getNo0fMoves, isLegalMove, makeMove, isSolved, tooString, getPos, randomize, isSolvable, noOfInversions. No advanced methods and test it is solvable. I think the study group will create the game at a later date. I am looking for someone to ensure the code is correct and test it is workable / solvable (for want of a better explanation) They all look like this public SlidingPuzzle( Dimension dimension) { // ...switch statement (I need these writing and solvable) If anyone needs more info, wants me to clarify anything, thinks they may be able to help, get in touch and I'll do my best. (I didnt post the code here because its a school project / wanted to keep it somewhat private; I could show the code by hastebins in pm ?). RE: Sliding Puzzle Game (Need help) - saltycracker - Sep 20, 2020 Write it as what? A console app? A GUI app? A web app? A library? You basically gave us nothing to solve. RE: Sliding Puzzle Game (Need help) - RainbowDragon - Sep 21, 2020 Please see original post for detail or ask, thanks. (Sep 21, 2020 03:39 AM)saltycracker Wrote: Here's a link which show's you how to use enum's in a switch. Thanks for the link, ill have a read. Tried to like post but dont have enough bytes yet :) RE: Sliding Puzzle Game (Need help) - saltycracker - Sep 21, 2020 Here's a link which show's you how to use enum's in a switch. https://www.java67.com/2012/09/how-to-use-java-enum-in-switch-case-example.html |