{"id":15833746,"url":"https://github.com/mlomb/halite2-relay","last_synced_at":"2026-05-03T04:31:46.970Z","repository":{"id":95967946,"uuid":"115966436","full_name":"mlomb/halite2-relay","owner":"mlomb","description":"Internet relay for Halite 2","archived":false,"fork":false,"pushed_at":"2018-01-02T06:09:51.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T13:41:56.611Z","etag":null,"topics":["halite2","node-js"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mlomb.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":"2018-01-02T02:32:43.000Z","updated_at":"2018-01-03T15:55:47.000Z","dependencies_parsed_at":"2023-04-26T09:47:51.391Z","dependency_job_id":null,"html_url":"https://github.com/mlomb/halite2-relay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlomb%2Fhalite2-relay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlomb%2Fhalite2-relay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlomb%2Fhalite2-relay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlomb%2Fhalite2-relay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlomb","download_url":"https://codeload.github.com/mlomb/halite2-relay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246637894,"owners_count":20809699,"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":["halite2","node-js"],"created_at":"2024-10-05T13:41:58.608Z","updated_at":"2026-05-03T04:31:41.950Z","avatar_url":"https://github.com/mlomb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Halite2 Network relay\n\nIt works if you don't mess it up.\nIt supports 2 and 4 players games.\n\n# Requirements\n* NodeJS\n* ```npm install ws```\n* ```npm install readline-sync```\n* Copy the ```halite``` executable into the root of the respository (only required by the host)\n* Create a file called ```mybot_command.txt``` and write the command to execute your bot e.g. cd ```\"C:\\MyBot\" \u0026\u0026 .\\MyBot.exe\"```\n\n# How to use it\n* The host will create a room running ```node halite2-relay-server.js```. You'll be asked about the size of the room (2 or 4) and the port you want to run the server at.\n* With the server running, and it doesn't matter if you are not the host, all the players will have to run ```node halite2-relay-client.js```. The program will ask about the IP address and the port of the server. If you are the host, you'll write ```127.0.0.1``` or ```localhost```.\n* When all players are connected a match should start, everyone will see the output of the halite executable. At the end of the match everyone gets a copy of the replay file.\n* A new game will start in 10 seconds.\n\n![cli](pic.png?raw=true)\n![replay](pic2.png?raw=true)\n\n# Contributions\nThanks to [fohristiwhirl](https://github.com/fohristiwhirl) for [the idea of the relay](https://github.com/fohristiwhirl/halite2_relay).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlomb%2Fhalite2-relay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlomb%2Fhalite2-relay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlomb%2Fhalite2-relay/lists"}