{"id":21838375,"url":"https://github.com/prust/flower-matching","last_synced_at":"2025-03-21T15:18:38.902Z","repository":{"id":142795734,"uuid":"197827029","full_name":"prust/flower-matching","owner":"prust","description":"Two player pattern matching game","archived":false,"fork":false,"pushed_at":"2019-07-23T16:10:37.000Z","size":6747,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T10:30:59.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-19T18:54:24.000Z","updated_at":"2019-07-23T16:10:39.000Z","dependencies_parsed_at":"2023-06-03T15:30:36.584Z","dependency_job_id":null,"html_url":"https://github.com/prust/flower-matching","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prust%2Fflower-matching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prust%2Fflower-matching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prust%2Fflower-matching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prust%2Fflower-matching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prust","download_url":"https://codeload.github.com/prust/flower-matching/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244819802,"owners_count":20515646,"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","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":[],"created_at":"2024-11-27T21:10:41.606Z","updated_at":"2025-03-21T15:18:38.881Z","avatar_url":"https://github.com/prust.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flower Matching\nA two-player turn based flower matching game that I made for my wife on our 15th anniversary.\n\n![Screenshot](/screenshot.png?raw=true \"Screenshot\")\n\nThe goal is to create a row of **four or more matching flowers** horizontally or vertically by swapping adjacent flowers (the swapping can be done horizontally, vertically or diagonally) in as few moves as possible.\n\nPlayer 1 uses the mouse, Player 2 uses the keyboard. Both players can play simultaneously. Each gets a total of 25 moves.\n\n## Points\nWhen a match is made, the player gets 1 point for if it is 4-in-a-row, 2 points for 5-in-a-row, 3 points for 6-in-a-row, etc.\n\n## Controls\n\nMouse:\n* The first click selects the current tile (indicated by the border turning white)\n* The second click swaps the current tile with the selected tile\n\nKeyboard:\n* The arrow keys move the current tile\n* Press the spacebar to select the current tile (indicated by the border turning white)\n* Press the spacebar again to swap the current tile with the selected tile\n\n## Download\n\nYou can download the game [for Windows here](https://github.com/prust/flower-matching/releases/download/v0.1.1/flower-matching-win.zip), or [for OS X here](https://github.com/prust/flower-matching/releases/download/v0.1.1/flower-matching-osx.zip).\n\n## Attributions\n\nThe vector artwork (black-and-white) was created by `nitut78` on The Noun Project and can be found here: https://thenounproject.com/nitu786/collection/abstract-flower-set/. I did the coloring in the Sketch app.\n\n## To-Do\n\nI rushed this out pretty quickly, so there are a lot of things that can be done to improve it:\n\n* Allow diagonal matches?\n* Add Sounds\n* Add Animation\n* Add Controller Support\n* Try sliding entire rows up/down/left/right instead of swapping tiles\n* Put the two players scores left-aligned and right-aligned\n* Refactor DRY violations out of the code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprust%2Fflower-matching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprust%2Fflower-matching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprust%2Fflower-matching/lists"}