{"id":15090998,"url":"https://github.com/karpovpaulus/frogwindowsformsapp","last_synced_at":"2026-03-09T05:32:54.687Z","repository":{"id":236348884,"uuid":"792426496","full_name":"KarpovPaulus/FrogWindowsFormsApp","owner":"KarpovPaulus","description":"🎮 🐸 The game \"Frogs\", written in the process of learning Windows Forms technology and working with images.","archived":false,"fork":false,"pushed_at":"2024-05-15T13:26:17.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T20:46:00.139Z","etag":null,"topics":["winforms"],"latest_commit_sha":null,"homepage":"","language":"C#","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/KarpovPaulus.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T16:38:50.000Z","updated_at":"2024-05-15T13:26:20.000Z","dependencies_parsed_at":"2024-09-30T06:40:56.285Z","dependency_job_id":"cb1d6ca1-caef-45e5-9e66-ff96326470f6","html_url":"https://github.com/KarpovPaulus/FrogWindowsFormsApp","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"fd1e4850c9e126d3d071684c0ef3479784c4c0b2"},"previous_names":["vq11/frogwindowsformsapp","karpovpaulus/frogwindowsformsapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpovPaulus%2FFrogWindowsFormsApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpovPaulus%2FFrogWindowsFormsApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpovPaulus%2FFrogWindowsFormsApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpovPaulus%2FFrogWindowsFormsApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KarpovPaulus","download_url":"https://codeload.github.com/KarpovPaulus/FrogWindowsFormsApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241921825,"owners_count":20042763,"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":["winforms"],"created_at":"2024-09-25T10:35:03.125Z","updated_at":"2026-03-09T05:32:54.644Z","avatar_url":"https://github.com/KarpovPaulus.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐸 FrogWindowsFormsApp\n## 🎮 🐸 The game \"Frogs\", written in the process of learning Windows Forms technology and working with images.\n\n![Изображение](https://github.com/vq11/FrogWindowsFormsApp/blob/master/2024-04-26_19-35-19.png?raw=true)\n\n## 🔧 Technical part\n* The project is implemented on the Windows Forms platform.\n\n* Use the PictureBox component to work with images.\n\n\n## 🌆 Working with images\n\n~~~ csharp\n        private void PictureBox_Click(object sender, EventArgs e)\n        {\n            Swap((PictureBox)sender);\n            if(EndGame())\n            {\n                if(CanBeBetter(Convert.ToInt32(scoreLabel.Text)))\n                {\n                    MessageBox.Show(\"Лучший результат!\");\n                }\n                else\n                {\n                    var result = MessageBox.Show(\"Можно лучше. Попробовать еще?\", \"Конец игры\", MessageBoxButtons.YesNo);\n                    if(result == DialogResult.Yes)\n                    {\n                        Application.Restart();\n                    }\n                }\n            }\n        }\n\n        private void Swap(PictureBox clickedPicture)\n        {\n            var distance = Math.Abs(clickedPicture.Location.X - emptyPictureBox.Location.X) / emptyPictureBox.Size.Width;\n\n            if (distance \u003e 2)\n            {\n                MessageBox.Show(\"Так нельзя\");\n            }\n            else\n            {\n                var location = clickedPicture.Location;\n\n                clickedPicture.Location = emptyPictureBox.Location;\n\n                emptyPictureBox.Location = location;\n\n                scoreLabel.Text = Convert.ToString(Convert.ToInt32(scoreLabel.Text) + 1);\n            }\n        }\n~~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpovpaulus%2Ffrogwindowsformsapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarpovpaulus%2Ffrogwindowsformsapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpovpaulus%2Ffrogwindowsformsapp/lists"}