{"id":22814488,"url":"https://github.com/dwb/koenigsrufen-haskell","last_synced_at":"2025-06-20T21:33:06.484Z","repository":{"id":28233750,"uuid":"31738490","full_name":"dwb/koenigsrufen-haskell","owner":"dwb","description":"A model of the game of Königsrufen in Haskell","archived":false,"fork":false,"pushed_at":"2020-03-22T13:36:32.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T22:16:48.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwb.png","metadata":{"files":{"readme":"README.mkd","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}},"created_at":"2015-03-05T21:50:18.000Z","updated_at":"2020-03-22T13:36:33.000Z","dependencies_parsed_at":"2022-09-15T07:01:55.420Z","dependency_job_id":null,"html_url":"https://github.com/dwb/koenigsrufen-haskell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dwb/koenigsrufen-haskell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwb%2Fkoenigsrufen-haskell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwb%2Fkoenigsrufen-haskell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwb%2Fkoenigsrufen-haskell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwb%2Fkoenigsrufen-haskell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwb","download_url":"https://codeload.github.com/dwb/koenigsrufen-haskell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwb%2Fkoenigsrufen-haskell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261020299,"owners_count":23098117,"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":[],"created_at":"2024-12-12T13:09:07.372Z","updated_at":"2025-06-20T21:33:01.470Z","avatar_url":"https://github.com/dwb.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Königsrufen in Haskell\n\n[The game of Königsrufen](https://stompydan.net/koenigsrufen) is rather good fun, and I wanted an excuse to write some Haskell, so I've started to model it here. it doesn't play a full game yet, I will add to it when time and energy allows. The idea is that it will be a library and computer player for the game.\n\nThe only major problem I've had so far is in how to deal with different implementations of a player. Currently I have a `PromptPlayer`, which prompts a human in the terminal for actions, and a `BotPlayer` which computes actions itself. They both have instances of the `Player` typeclass. Getting GHC to be happy with me having a heterogenous `Map` of player positions to `Player`-instance ADTs, and for the game to find the instance through the various calls, was a bit of a job for a relative Haskell newcomer! And in GHC 7.8, I found I needed the `ImpredicativeTypes` language extension. This extention doesn't seem to have much favour in the community, so it'd be nice to improve the implementation. Suggestions very welcome.\n\nOther than that, I think it's pretty straight-forward. It's a bit of a playground at the moment. Lenses weren't strictly necessary but look a lot prettier once you can read the flashy operators.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwb%2Fkoenigsrufen-haskell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwb%2Fkoenigsrufen-haskell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwb%2Fkoenigsrufen-haskell/lists"}