{"id":21864582,"url":"https://github.com/2004seraph/dominomatch","last_synced_at":"2025-03-21T20:45:38.408Z","repository":{"id":210262088,"uuid":"726140290","full_name":"2004seraph/dominoMatch","owner":"2004seraph","description":"My university functional programming assignment","archived":false,"fork":false,"pushed_at":"2023-12-01T16:30:30.000Z","size":780,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T15:32:54.769Z","etag":null,"topics":["console-app","game-ai","learning","university-assignment"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2004seraph.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}},"created_at":"2023-12-01T16:07:18.000Z","updated_at":"2024-03-12T18:55:37.000Z","dependencies_parsed_at":"2023-12-01T19:01:49.152Z","dependency_job_id":null,"html_url":"https://github.com/2004seraph/dominoMatch","commit_stats":null,"previous_names":["sammot/dominomatch","2004seraph/dominomatch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2004seraph%2FdominoMatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2004seraph%2FdominoMatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2004seraph%2FdominoMatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2004seraph%2FdominoMatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2004seraph","download_url":"https://codeload.github.com/2004seraph/dominoMatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244868404,"owners_count":20523586,"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":["console-app","game-ai","learning","university-assignment"],"created_at":"2024-11-28T04:10:25.330Z","updated_at":"2025-03-21T20:45:38.388Z","avatar_url":"https://github.com/2004seraph.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dominoMatch - My functional programming assignment\n\nI completed this piece of work for COM2108, a module in which I studied the functional programming paradigm and learnt Haskell. I had a lot of fun making this and developed a love for list processing!\n\nThis program simulates a match of 5s and 3s dominoes, and includes two players - one that randomly plays dominoes and one that employs multiple intelligent strategies to win.\n\nIt can be best demonstrated in the GHCi REPL as below:\n```bash\nghci\u003e :load DomsMatch.hs\n...\nghci\u003e domsMatch \u003camount of games\u003e \u003chand size\u003e \u003cwinning score\u003e simplePlayer smartPlayer \u003crandom seed value\u003e\nghci\u003e domsMatch 1000 7 61 simplePlayer smartPlayer 4325\n(18,982)\n```\n\nThe output of `domsMatch` will be the wins for each player, you can also pit two of the same player against each other, though that would just mean equal wins.\n\nYou may also load `DomsMatchTest.hs` for different versions of the smart and simple players with varying strategies. All are prefixed with `smartPlayer_` or `simplePlayer_` and can be navigated using GHCi's tab autocompletion.\n\nCompiling and running `Main.hs` will play a game similar to above (but a bit more performant).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2004seraph%2Fdominomatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2004seraph%2Fdominomatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2004seraph%2Fdominomatch/lists"}