{"id":22783204,"url":"https://github.com/gregolive/tic-tac-toe","last_synced_at":"2026-05-05T04:07:48.464Z","repository":{"id":183623016,"uuid":"457584749","full_name":"gregolive/tic-tac-toe","owner":"gregolive","description":"Tic Tac Toe in vanilla Javascript.","archived":false,"fork":false,"pushed_at":"2022-02-12T13:23:39.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T13:53:29.666Z","etag":null,"topics":["css","html","javascript"],"latest_commit_sha":null,"homepage":"https://gregolive.github.io/tic-tac-toe/","language":"JavaScript","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/gregolive.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}},"created_at":"2022-02-10T01:13:31.000Z","updated_at":"2022-02-11T11:10:36.000Z","dependencies_parsed_at":"2023-07-25T07:27:45.253Z","dependency_job_id":null,"html_url":"https://github.com/gregolive/tic-tac-toe","commit_stats":null,"previous_names":["gregolive/tic-tac-toe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregolive/tic-tac-toe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Ftic-tac-toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Ftic-tac-toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Ftic-tac-toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Ftic-tac-toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregolive","download_url":"https://codeload.github.com/gregolive/tic-tac-toe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Ftic-tac-toe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32634754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css","html","javascript"],"created_at":"2024-12-11T22:07:19.533Z","updated_at":"2026-05-05T04:07:48.448Z","avatar_url":"https://github.com/gregolive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic Tac Toe\n\nA miniamlist Tic Tac Toe app.\n\n[Live demo](https://gregolive.github.io/tic-tac-toe/) 👈\n\n## Functionality\n\n- Vanilla CSS for main board display and modal styling via Bootstrap\n- Javascript factory function for players and modules for controlling modal form input, display elements, and the game board\n- Modal form open at app startup so user can select number of players and input player info (Javascript used to ensure proper form input and display errors)\n- Players input their move by clicking on the board\n- Dialog box below the board alerts players of who's turn it is and on game over displays a 'Play Again?' link\n- On game over CSS animations are added via Javascript to either the 3 winning squares or the entire board in the event of a tie\n- Two player game involves two human players making moves until game over\n- One player game includes a computer player that makes random moves\n\n## Reflection\n\nCreating this tic tac toe app was the first time I implemented factory functions and modules in Javascript. Compared to using Object prototyping [Library project](https://github.com/gregolive/library), the ability of factory functions and modules to limit the use of globally scoped variables and functions made the code feel much cleaner.\n\nIt was also the first project in which I implemented Javascript form verification, and to me, this felt much cleaner than HTML verification with browser popups.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregolive%2Ftic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregolive%2Ftic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregolive%2Ftic-tac-toe/lists"}