{"id":23508781,"url":"https://github.com/lovasko/hs-halite","last_synced_at":"2025-06-25T16:06:20.165Z","repository":{"id":78820916,"uuid":"81263541","full_name":"lovasko/hs-halite","owner":"lovasko","description":"Halite AI Challenge Haskell Base","archived":false,"fork":false,"pushed_at":"2017-02-07T23:43:51.000Z","size":4,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T15:57:01.742Z","etag":null,"topics":["client","halite","haskell"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovasko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-02-07T22:58:45.000Z","updated_at":"2017-02-07T23:41:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f83fdf7-1e1e-48cb-a9d5-1d822c186f0d","html_url":"https://github.com/lovasko/hs-halite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lovasko/hs-halite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fhs-halite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fhs-halite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fhs-halite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fhs-halite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasko","download_url":"https://codeload.github.com/lovasko/hs-halite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fhs-halite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261906838,"owners_count":23228354,"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":["client","halite","haskell"],"created_at":"2024-12-25T11:32:07.145Z","updated_at":"2025-06-25T16:06:20.123Z","avatar_url":"https://github.com/lovasko.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hs-halite\nWould you like to create a killer Halite client? Do you find that monad is just\na monoid in the category of endofunctors? Great! That means the `hs-halite`\nmodule is just for you!\n\n## API\n### Types\nAs you probably know, there are four possible `Direction`s to choose when\nmoving. Each `Move` is defined by the field that we are moving from (`Int` and\n`Int` for width and height respectively) and the `Direction`.\n\nOverarching setup of the game `Board` contains your own numerical ID, size of\nthe board (both horizontally and vertically) and list of productions for each\nfield. A state of the `Game` contains the current field owners and their\nstrengths.\n\n```haskell\ndata Direction = North | East | South | West\ndata Move      = Move Direction Int Int\ndata Board     = Board Int Int Int [Int]\ndata Game      = Game [Int] [Int]\n```\n\n### Functions\nFirst thing you will need to do is to `startGame`. It takes one parameter,\nwhich is your username. In order to stay informed before each move, call the\n`readGame` function. Once you found the most fearsome move, run `writeGame` to\nexecute it!\n\n```haskell\nstartGame :: String -\u003e IO (Board, Game)\nreadGame  :: Board  -\u003e IO Game\nwriteGame :: [Move] -\u003e IO ()\n```\n\n## License\nThe `hs-halite` package is licensed under the terms of the [2-clause BSD\nlicense](LICENSE). In case you need any other license, feel free to\ncontact the author.\n\n## Author\nDaniel Lovasko \u003cdaniel.lovasko@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Fhs-halite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasko%2Fhs-halite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Fhs-halite/lists"}