{"id":22913936,"url":"https://github.com/hojsong/game_and_server","last_synced_at":"2026-04-10T12:31:46.668Z","repository":{"id":259370178,"uuid":"851317882","full_name":"hojsong/game_and_server","owner":"hojsong","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-19T22:15:18.000Z","size":5331,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T23:39:39.300Z","etag":null,"topics":["c","client","cpp","database","docker","docker-compose","grapics","linux","macos","makefile","pgadmin4","postgressql","server","shellscript","socket-programming"],"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/hojsong.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-09-02T21:39:17.000Z","updated_at":"2024-11-29T06:20:37.000Z","dependencies_parsed_at":"2024-10-25T02:17:42.797Z","dependency_job_id":null,"html_url":"https://github.com/hojsong/game_and_server","commit_stats":null,"previous_names":["hojsong/game_and_server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hojsong/game_and_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hojsong%2Fgame_and_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hojsong%2Fgame_and_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hojsong%2Fgame_and_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hojsong%2Fgame_and_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hojsong","download_url":"https://codeload.github.com/hojsong/game_and_server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hojsong%2Fgame_and_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31642715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","client","cpp","database","docker","docker-compose","grapics","linux","macos","makefile","pgadmin4","postgressql","server","shellscript","socket-programming"],"created_at":"2024-12-14T05:12:34.921Z","updated_at":"2026-04-10T12:31:46.090Z","avatar_url":"https://github.com/hojsong.png","language":"C","readme":"# game_and_server\r\n\r\n# Client\r\n\r\nDodge game\r\n\r\nEasy Mode: 20 bullets and speed 1\r\nNormal Mode: 25 bullets and speed 1-2\r\nHard Mode: 30 bullets and speed 1-3\r\n\r\nWeb Mode: Allows record upload and download.\r\nLocal Mode: Activated when 'Socket creation and connection fails' or 'Local mode is selected'\r\n\r\nIn Web Mode: Records are uploaded to both local storage and server.\r\nIn Local Mode: Records are saved only to local storage.\r\n\r\n\r\n# Server Overview\r\nThis server is designed to operate on macOS, You need libpq to use postgresql(brew install libpq).\r\n utilizing Docker to run PostgreSQL and pgAdmin for seamless interaction. The server accepts a client's submitted name and the score at the end of the game, maintaining a leaderboard that stores and displays the top 10 scores. Both the leaderboard data and the scores are saved in a file and within SQL.\r\n\r\nIn version 1, the leaderboard is generated without using SQL; instead, scores are sorted in descending order based on the score and stored in both a file and a class.\r\n\r\nIn version 2, the server stores scores in SQL, retrieves the leaderboard values from the database, and also saves the scores in descending order to a file, which is then sent back to the client.\r\n\r\nThe communication between the client (located in client/Dodge) and the server (located in server/Server), as well as between the server and PostgreSQL (running in Docker), is established using TCP/IP(Socket).\r\n\r\nFeel free to modify any part of this text as needed!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhojsong%2Fgame_and_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhojsong%2Fgame_and_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhojsong%2Fgame_and_server/lists"}