{"id":18021372,"url":"https://github.com/adityaathalye/oxo","last_synced_at":"2025-03-26T22:30:51.571Z","repository":{"id":148465307,"uuid":"222957225","full_name":"adityaathalye/oxo","owner":"adityaathalye","description":"A game of traditional 3x3 Noughts and Crosses, in Bash.","archived":false,"fork":false,"pushed_at":"2024-09-10T07:04:21.000Z","size":31,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T14:22:21.437Z","etag":null,"topics":["bash","bash-script","functional-programming","shell","shell-script","study","study-project"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adityaathalye.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-11-20T14:34:13.000Z","updated_at":"2025-01-13T12:04:24.000Z","dependencies_parsed_at":"2024-10-30T06:29:58.135Z","dependency_job_id":null,"html_url":"https://github.com/adityaathalye/oxo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaathalye%2Foxo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaathalye%2Foxo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaathalye%2Foxo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaathalye%2Foxo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityaathalye","download_url":"https://codeload.github.com/adityaathalye/oxo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245747494,"owners_count":20665798,"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":["bash","bash-script","functional-programming","shell","shell-script","study","study-project"],"created_at":"2024-10-30T06:09:48.991Z","updated_at":"2025-03-26T22:30:51.163Z","avatar_url":"https://github.com/adityaathalye.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![justforfunnoreally.dev badge](https://img.shields.io/badge/justforfunnoreally-dev-9ff)](https://justforfunnoreally.dev)\n\n**To play**\n\n- Clone, cd into the root dir, and run the \"main\" script: `$ ./oxo`\n- Your machine should have Bash 4+, preferably Bash 4.4+ (latest stable)\n- Be kind to the \"Computer player\". It is randumb :D\n\n**To code-read**\n\n- Board design and setup is at the beginning of `oxo_logic.sh`\n\n- The scoring logic is based on pattern matches against a regularly-formatted board. See:\n    - The linchpin function `fit_board_to_square_grid`\n    - The commentary in the `# SCORING LOGIC` section\n    - The scoring functions, particularly `__all_crosses`, `__all_noughts`, `__player_wins_grid`, `crosses_win`, `noughts_win`, and `its_a_draw`\n\n- I like to write [Functional Programming style Bash](https://www.evalapply.org/tags/bash/).\n\n- Follow the commit history to trace how the game logic gradually emerged.\n\n**But why?!?**\n\nFor unabashed mirth and merriment, of course. Why else?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaathalye%2Foxo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityaathalye%2Foxo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaathalye%2Foxo/lists"}