{"id":20603684,"url":"https://github.com/patrickm663/twoduko","last_synced_at":"2026-03-07T08:03:01.611Z","repository":{"id":204771250,"uuid":"712618264","full_name":"patrickm663/twoduko","owner":"patrickm663","description":"TwoDuko is a two player Suduko-like game where players take turns playing moves in a grid that follows the Suduko ruleset.","archived":false,"fork":false,"pushed_at":"2023-11-01T13:21:12.000Z","size":564,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T16:48:48.888Z","etag":null,"topics":["dlang"],"latest_commit_sha":null,"homepage":"","language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickm663.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":"2023-10-31T20:42:10.000Z","updated_at":"2023-10-31T21:05:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"d367ee9b-f209-43f0-9c8d-55c7ad9e1dab","html_url":"https://github.com/patrickm663/twoduko","commit_stats":null,"previous_names":["patrickm663/twoduko"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patrickm663/twoduko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Ftwoduko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Ftwoduko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Ftwoduko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Ftwoduko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickm663","download_url":"https://codeload.github.com/patrickm663/twoduko/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Ftwoduko/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: 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":["dlang"],"created_at":"2024-11-16T09:18:09.524Z","updated_at":"2026-03-07T08:03:01.581Z","avatar_url":"https://github.com/patrickm663.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twoduko\nTwoDuko is a two player Suduko-like game where players take turns playing moves in a grid that follows the Suduko ruleset.\n\nThis version is a CLI implementation. **Further work is required to pretty-print the grid and have it adapt correctly to nxm boards.**\n\n## How to Install\nTo build and run from source:\n\n1. Ensure D and [Dub](https://dub.pm/getting_started.html) is installed\n2. Clone and enter the repo\n3. Build using Dub \n```\ndub build\n```\n\nAlternatively, \n```\ndub build --build=release\n```\n\n4. Run the binary executable\n\n```\n./twoduko\n```\n\nAlternatively, the game can be played via a Docker container.\n\n1. Build the container image\n```\ndocker build -t twoduko .\n```\n\n2. Run the container\n```\ndocker run -ti --rm twoduko:latest\n```\n\n## Rules\nTwoDuko is played on an empty 4x4 grid. Players take turns playing numbers between 1-4 into the grid. A move is considered legal if there are no repetitions in the horizontal, vertical, or 2x2 subgrid.\n\n![image](https://github.com/patrickm663/twoduko/assets/77886027/c39d436d-9ce8-43bb-841f-45a9022c55fd)\n\nPlayers win when their opponent cannot make a legal move, or there are no empty spaces remaining.\n\n## TODO\n- [ ] Pretty-print the gameboard\n- [ ] Colour-code player moves to make it easier to track\n- [ ] Update the board printout logic to support nxm grids\n- [ ] Begin work on an 'AI' that doesn't just make random moves\n- [ ] Compile to WASM and create a web frontend\n- [ ] Add the option to play another human and select who starts first\n- [ ] Add some unit tests\n- [x] Perform linting\n- [x] Add a Dockerfile so Dub isn't a requirement\n\n## License\nMIT.\n\n## Acknowledgements\nThis project was originally issued as part of Stellenbosch University's Computer Science 114 semester project I had in 2017. We wrote this in Java and it always stuck out for me as a point where I fell in love with programming. I rewrote this game so many times whenever we would learn something new -- I couldn't wait to get back home and add something new to the project or rewrite it.\n\nI wanted to rewrite a baseline version in D over a couple evenings because it is a good launchpad for other interesting topics like WASM, AIs, and networking.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickm663%2Ftwoduko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickm663%2Ftwoduko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickm663%2Ftwoduko/lists"}