You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.7 KiB

2 years ago
  1. # Flutter Puzzle
  2. [![Codemagic build status](https://api.codemagic.io/apps/61f7d22dafa5dd12bdc7c1bf/61f7d22dafa5dd12bdc7c1be/status_badge.svg)](https://codemagic.io/apps/61f7d22dafa5dd12bdc7c1bf/61f7d22dafa5dd12bdc7c1be/latest_build)
  3. > Web App link: https://flutterpuzzle.codemagic.app
  4. ![](screenshots/photo_mode.gif)
  5. Playing a game or solving a puzzle is always fun when you share with friends. We have created a puzzle that consists of three main modes:
  6. * **Normal mode:** The classic slide puzzle configuration.
  7. * **Photo mode:** Ability to generate puzzles from any image uploaded.
  8. * **Multiplayer mode:** Play with others in a competitive head-to-head multiplayer mode.
  9. The puzzle also has an auto solver built-in, it uses the A* algorithm along with some pretty neat tricks to solve the puzzle in the lowest possible moves.
  10. A full explanation of how the A* algorithm works is [here](https://youtu.be/nwtOWpSKGHc).
  11. The puzzle uses **Rive** to display an animated Dash beside the puzzle.
  12. **Riverpod** is used for state management inside the puzzle. The app has pretty challenging state management as there are three modes and the puzzle state is persisted across both the photo mode and the multiplayer mode.
  13. We also used a color palette generator package that can create an entire color palette from just an image, it is used in photo mode to change the theme of the screen according to the image selected.
  14. ## Screenshots
  15. **Normal mode:**
  16. ![](screenshots/puzzle_normal.png)
  17. **Photo mode:**
  18. ![](screenshots/puzzle_photo.png)
  19. **Multiplayer mode:**
  20. ![](screenshots/puzzle_multiplayer_1.png)
  21. ![](screenshots/puzzle_multiplayer.png)
  22. ## License
  23. Copyright (c) 2022 Soumi Bardhan, Souvik Biswas
  24. Permission is hereby granted, free of charge, to any person obtaining a copy
  25. of this software and associated documentation files (the "Software"), to deal
  26. in the Software without restriction, including without limitation the rights
  27. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  28. copies of the Software, and to permit persons to whom the Software is
  29. furnished to do so, subject to the following conditions:
  30. The above copyright notice and this permission notice shall be included in all
  31. copies or substantial portions of the Software.
  32. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  33. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  34. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  35. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  36. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  37. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  38. SOFTWARE.