{"id":23276240,"url":"https://github.com/dinoscapeprogramming/tictactoe-package","last_synced_at":"2025-04-06T11:45:03.266Z","repository":{"id":59071777,"uuid":"535269230","full_name":"DinoscapeProgramming/TicTacToe-Package","owner":"DinoscapeProgramming","description":"A package you can use to create a tictactoe game","archived":false,"fork":false,"pushed_at":"2022-09-16T16:00:25.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T07:16:15.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DinoscapeProgramming.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}},"created_at":"2022-09-11T10:56:25.000Z","updated_at":"2022-10-09T14:52:56.000Z","dependencies_parsed_at":"2023-01-18T10:45:16.823Z","dependency_job_id":null,"html_url":"https://github.com/DinoscapeProgramming/TicTacToe-Package","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/DinoscapeProgramming%2FTicTacToe-Package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2FTicTacToe-Package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2FTicTacToe-Package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2FTicTacToe-Package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DinoscapeProgramming","download_url":"https://codeload.github.com/DinoscapeProgramming/TicTacToe-Package/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478252,"owners_count":20945262,"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":[],"created_at":"2024-12-19T21:30:01.482Z","updated_at":"2025-04-06T11:45:03.234Z","avatar_url":"https://github.com/DinoscapeProgramming.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TicTacToe Package\r\nA package you can use to create a TicTacToe game\r\n\r\n## Documentation\r\n### Setup\r\n```js\r\nconst TictTacToe = require('tictactoe.io'); \r\n```\r\n\r\n### Create game\r\n```js\r\nconst Game = new TicTacToe.Game(\"Foo\" /*First player*/, \"Bar\" /*Second player*/);\r\n```\r\n\r\n### Place field\r\n```js\r\nGame.place(\"Foo\" /*The player doing this move*/, 3 /*number from 1 to 9*/);\r\n```\r\n\r\n### Get Board\r\n```js\r\nGame.getBoard().then((response) =\u003e {\r\n  console.log(response.board || Game.board);\r\n});\r\n```\r\n\r\n### Get Board As Text\r\n```js\r\nGame.getBoard().then((response) =\u003e {\r\n  console.log(response.textBoard || Game.textBoard);\r\n});\r\n```\r\n\r\n### Get turn\r\n```js\r\nGame.getBoard().then((response) =\u003e {\r\n  console.log(response.turn || Game.turn);\r\n});\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinoscapeprogramming%2Ftictactoe-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinoscapeprogramming%2Ftictactoe-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinoscapeprogramming%2Ftictactoe-package/lists"}