{"id":27400844,"url":"https://github.com/butanium/salesman-wars","last_synced_at":"2026-01-21T13:33:05.146Z","repository":{"id":110019427,"uuid":"416737510","full_name":"Butanium/Salesman-Wars","owner":"Butanium","description":"A multiplayer codingame prototype","archived":false,"fork":false,"pushed_at":"2021-10-13T12:40:22.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T03:53:39.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/Butanium.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,"zenodo":null}},"created_at":"2021-10-13T12:40:17.000Z","updated_at":"2021-10-13T12:40:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdaf8be9-06b0-48c9-ac2b-28d7fc32f1e7","html_url":"https://github.com/Butanium/Salesman-Wars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Butanium/Salesman-Wars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2FSalesman-Wars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2FSalesman-Wars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2FSalesman-Wars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2FSalesman-Wars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Butanium","download_url":"https://codeload.github.com/Butanium/Salesman-Wars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2FSalesman-Wars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28633762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-04-14T03:43:28.166Z","updated_at":"2026-01-21T13:33:05.142Z","avatar_url":"https://github.com/Butanium.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project is the skeleton for the creation of a game using the Game Engine Toolkit of [CodinGame](https://codingame.com).\n\nCheck the documentation on the [github repository](https://github.com/CodinGame/codingame-sdk-doc).\n\n## Note about the game turn implementation\nThere are 2 ways to implement your game turn according to the game you want to create. **The simultaneous mode** or the **Turn by Turn mode**.\n\n### The simultaneous mode\nIt's a game mode where all players receive the game data and execute their actions in the same turn. (eg: Race, Pong, ...)\n\n```java\nfor (Player player : gameManager.getActivePlayers()) {\n    player.sendInputLine(input);\n    player.execute();\n}\n\nfor (Player player : gameManager.getActivePlayers()) {\n    try {\n        List\u003cString\u003e outputs = player.getOutputs();\n        // Check validity of the player output and compute the new game state\n    } catch (TimeoutException e) {\n        player.deactivate(String.format(\"$%d timeout!\", player.getIndex()));\n    }\n}\n\n// Check if there is a win / lose situation and call gameManager.endGame(); when game is finished\n```\n\n### The Turn by Turn mode:\nIt's a game mode where only one player execute an action during a turn. (eg: TicTacToe, Chess)\n\n```java\nSkeletonPlayer player = gameManager.getPlayer(turn % playerCount);\nplayer.sendInputLine(input);\nplayer.execute();\ntry {\n    List\u003cString\u003e outputs = player.getOutputs();\n    // Check validity of the player output and compute the new game state\n} catch (TimeoutException e) {\n    player.deactivate(String.format(\"$%d timeout!\", player.getIndex()));\n    player.setScore(-1);\n    gameManager.endGame();\n}\n\n// Check if there is a win / lose situation and call gameManager.endGame(); when game is finished\n```\n\n## Loading assets\nAssets are expected to be placed in the `src/main/resources/view/assets` folder of your game's project.\n\nYou can then use the images in the texture cache with the Entity Module:\n```java\nentityManager.createSprite.setImage(\"background.jpg\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutanium%2Fsalesman-wars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbutanium%2Fsalesman-wars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutanium%2Fsalesman-wars/lists"}