{"id":29770476,"url":"https://github.com/codingtrain/meowmeow","last_synced_at":"2025-07-27T05:09:54.095Z","repository":{"id":204756541,"uuid":"712521362","full_name":"CodingTrain/MeowMeow","owner":"CodingTrain","description":"Meow?","archived":false,"fork":false,"pushed_at":"2023-10-31T19:47:54.000Z","size":4105,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T09:38:35.720Z","etag":null,"topics":["meow"],"latest_commit_sha":null,"homepage":"https://meowmeowceo.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodingTrain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-31T16:23:00.000Z","updated_at":"2024-03-19T06:15:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"79b0a7ac-582f-4569-a6e2-6f4577d66b3a","html_url":"https://github.com/CodingTrain/MeowMeow","commit_stats":null,"previous_names":["codingtrain/meowmeow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodingTrain/MeowMeow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FMeowMeow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FMeowMeow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FMeowMeow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FMeowMeow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodingTrain","download_url":"https://codeload.github.com/CodingTrain/MeowMeow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FMeowMeow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267302951,"owners_count":24066466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["meow"],"created_at":"2025-07-27T05:09:42.683Z","updated_at":"2025-07-27T05:09:54.086Z","avatar_url":"https://github.com/CodingTrain.png","language":"JavaScript","readme":"# Meow Meow Puzzle\n\n- [Where's Meow Meow?](https://meow-meow-ceo.netlify.app/)\n- Code based on [Slide Puzzle Challenge](https://thecodingtrain.com/challenges/165-slide-puzzle)\n\n## Code Structure\n\n- **`Tile` Class**: Represents a tile in the puzzle, holding information like its index and associated image segment.\n- **`preload()`**: Preloads necessary assets before the application starts, such as the image used in the puzzle.\n- **`setup()`**: Initializes the canvas, resizes the source image, and sets up the initial state of the puzzle, including tiles and board configurations.\n- **`initializeTiles()`**: Creates and initializes the tiles and the board. Tiles are created with positions, and an image segment and the board keeps track of tile indices.\n- **`updateTiles()`**: Aligns the original image segments to the tiles, ensuring that each tile has the correct segment of the image.\n- **`swap(i, j, arr)`**: A utility function that swaps two elements in an array, used to swap tiles on the board.\n- **`simpleShuffle(arr)` and `randomMove(arr)`**: These functions shuffle the board tiles randomly, ensuring that the puzzle starts in a mixed state.\n- **`mousePressed()`**: Handles user input, allowing tiles to be moved when clicked, as long as the move is valid.\n- **`draw()`**: Continuously renders the puzzle, updating tile positions, displaying images, and handling tile animations and movements.\n- **`isSolved()`**: Checks whether the puzzle is solved by comparing the current state of the board with the correct sequence of tiles.\n- **`isNeighbor(i, j, x, y)`**: Utility function to check whether two tiles are neighbors and therefore, can be swapped.\n- **`findBlank()`**: Finds the position of the blank tile, facilitating various operations like valid move checks and tile swapping.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingtrain%2Fmeowmeow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingtrain%2Fmeowmeow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingtrain%2Fmeowmeow/lists"}