{"id":17320783,"url":"https://github.com/andreacrotti/tic-tac-toe","last_synced_at":"2025-03-27T03:15:01.269Z","repository":{"id":66719776,"uuid":"90997056","full_name":"AndreaCrotti/tic-tac-toe","owner":"AndreaCrotti","description":null,"archived":false,"fork":false,"pushed_at":"2017-12-03T12:23:35.000Z","size":57,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T08:30:53.509Z","etag":null,"topics":["algorithm","clojure","strategy","tic-tac-toe"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreaCrotti.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-05-11T15:49:21.000Z","updated_at":"2017-07-14T19:54:24.000Z","dependencies_parsed_at":"2023-03-13T20:29:39.305Z","dependency_job_id":null,"html_url":"https://github.com/AndreaCrotti/tic-tac-toe","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreaCrotti%2Ftic-tac-toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreaCrotti%2Ftic-tac-toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreaCrotti%2Ftic-tac-toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreaCrotti%2Ftic-tac-toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreaCrotti","download_url":"https://codeload.github.com/AndreaCrotti/tic-tac-toe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245773180,"owners_count":20669719,"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":["algorithm","clojure","strategy","tic-tac-toe"],"created_at":"2024-10-15T13:33:46.371Z","updated_at":"2025-03-27T03:15:01.253Z","avatar_url":"https://github.com/AndreaCrotti.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tic-tac-toe\n\n[![Build Status](https://travis-ci.org/AndreaCrotti/tic-tac-toe.svg?branch=master)](https://travis-ci.org/AndreaCrotti/tic-tac-toe)\n\n## Usage\n\n    lein run -c CONFIG_FILE -p PROFILE\n\nWhere the default configuration is an\n[this EDN file](resources/config.edn), and each profile configures\nthe initial player, the size of the board and the algorithm\nwhich each player should use.\n\nSo for example to play a game with the profile `win-random`, which\nmakes `p1` use a `win` strategy, and `p2` uses a simple random\nstrategy, you can run:\n\n    $ lein run -p win-random\n    Winner:  :p1\n    o _ x\n    x o x\n    o _ x\n\nWhich will show the player who won and what was the last board status.\n\n## TODO\n\n- [x] implement more strategies\n    - [x] random algorithm\n    - [x] blocker algorithm, simply try to block the opponent\n    - [x] best move algorithm\n\n- [ ] store game results with an in memory datascript database\n- [ ] generate some interesting reports about the winner, using different strategies\n- [ ] make the various algorithm compete against each other and see who the winner is\n- [ ] implement a UI with re-frame to show the whole thing up and running\n- [ ] add CLI interface reading from stdin\n\n## License\n\nCopyright © 2017 Andrea Crotti\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreacrotti%2Ftic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreacrotti%2Ftic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreacrotti%2Ftic-tac-toe/lists"}