ermsdev / sliderai Goto Github PK
View Code? Open in Web Editor NEWIntro to Programming class project (a first project with git, archived in its original state)
Intro to Programming class project (a first project with git, archived in its original state)
It seems like finalBoard is not the same as poppedBoard, so when the call is made to print the list of past moves a different final move is reported... https://github.com/sermshar/sliderAI/blob/master/SliderAI/main.cpp#L274, linking to the beginning of the do while loop since I'm not sure where the issue is exactly... maybe there is a way to force the queue to update.
Basic data entry via console
Commit 3dd09db added in a method that can solve a puzzle that requires one move to solve. We now need some equations (see: http://www.geeksforgeeks.org/check-instance-15-puzzle-solvable/) to determine if a puzzle is solvable so that more complicated arrangements can be entered and the program can be set to run in a loop.
TLDR:
1 iteration solver working
need puzzle validation equations (see: http://www.geeksforgeeks.org/check-instance-15-puzzle-solvable/)
need code set to loop till complete
cfb3930 holds a broken implementation of the board scoring algorithm, currently not sure why it isn't working, most likely related to the interpretation of the position? possibly .find() is returning something unexpected? or the .row/column isn't working correctly?
Currently every time a child board is scored the Manhattan distance of each tile is computed; however, because we are only swapping one tile and the blank it is possible to limit this to just a score update. We could track the score of the parent and add or subtract the difference of the one swap to get the score of the child (this would scale exponentially, so for really large puzzles we could significantly reduce computation time).
Your project implementation MUST include the following:
You should employ the following concepts as appropriate to the program:
Quality of the code and the problem level of difficulty will be considered.
To make an A on this project, you must reach into advanced concepts and present quality code solution. Top projects designs show ingenuity, creativity, and efficiency. Demonstration that you have shown initiative, going above and beyond basic course coverage into utilization of advanced concepts. For instance, inheritance, polymorphism, recursion, graphics libraries, some other more advanced data structures of the STL Library (e.g. linked lists, stacks, queues, binary trees, etc.)
It would be nice to have some sort of a GUI to allow the user to input the puzzle state to solve for (and desired ending state). See: https://github.com/raysan5/raylib
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.