{"id":15175794,"url":"https://github.com/karpovpaulus/2048windowsformsapp","last_synced_at":"2026-02-21T22:31:49.206Z","repository":{"id":236340320,"uuid":"792380442","full_name":"KarpovPaulus/2048WindowsFormsApp","owner":"KarpovPaulus","description":"🎮 A copy of the popular game \"2048\", written in the process of learning Windows Forms technology, with results stored in JSON format.","archived":false,"fork":false,"pushed_at":"2024-05-15T13:15:43.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T22:46:19.561Z","etag":null,"topics":["csharp","json","windows-forms"],"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-26T14:51:13.000Z","updated_at":"2024-05-15T13:15:47.000Z","dependencies_parsed_at":"2024-05-16T02:43:55.422Z","dependency_job_id":"c42281c3-b5c3-46f4-b402-33cfe18fad41","html_url":"https://github.com/KarpovPaulus/2048WindowsFormsApp","commit_stats":null,"previous_names":["vq11/2048windowsformsapp","karpovpaulus/2048windowsformsapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpovPaulus%2F2048WindowsFormsApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpovPaulus%2F2048WindowsFormsApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpovPaulus%2F2048WindowsFormsApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpovPaulus%2F2048WindowsFormsApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KarpovPaulus","download_url":"https://codeload.github.com/KarpovPaulus/2048WindowsFormsApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240139189,"owners_count":19754063,"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":["csharp","json","windows-forms"],"created_at":"2024-09-27T12:42:40.341Z","updated_at":"2025-10-27T08:13:57.945Z","avatar_url":"https://github.com/KarpovPaulus.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎮 2048WindowsFormsApp\n## 🔢 A copy of the popular game \"2048\", written in the process of learning Windows Forms technology, with results stored in JSON format.\n\n\n![Изображение](https://github.com/vq11/2048WindowsFormsApp/blob/master/2024-04-26_20-03-21.png)\n\n## 🔧 Technical part\n\n* The project is implemented on the Windows Forms platform.\n\n* Made in compliance with the principles of OOP.\n\n* The JSON format is used to save the results.\n\n\n## 💾 Serialization\nUsing JSON serialization and deserialization, you can save and load game results.\n~~~ csharp\nnamespace _2048WindowsFormsApp\n{\n    public class UserManager\n    {\n        public static string path = \"result.json\";\n        public static List\u003cUser\u003e GetAll()\n        {\n            if(FileProvider.Exists(path))\n            {\n                var jsonData = FileProvider.GetValue(path);\n                return JsonConvert.DeserializeObject\u003cList\u003cUser\u003e\u003e(jsonData);\n            }\n            return new List\u003cUser\u003e();\n        }\n\n        public static void Add(User newUser)\n        {\n            var users = GetAll();\n            users.Add(newUser);\n\n            var jsonData = JsonConvert.SerializeObject(users);\n            FileProvider.Replace(path, jsonData);\n        }\n    }\n}\n~~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpovpaulus%2F2048windowsformsapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarpovpaulus%2F2048windowsformsapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpovpaulus%2F2048windowsformsapp/lists"}