{"id":21244418,"url":"https://github.com/unyt-org/example-tic-tac-toe","last_synced_at":"2025-07-03T02:05:32.062Z","repository":{"id":195053641,"uuid":"692126076","full_name":"unyt-org/example-tic-tac-toe","owner":"unyt-org","description":"A Tic Tac Toe game based on UIX and DATEX","archived":false,"fork":false,"pushed_at":"2025-04-07T14:08:41.000Z","size":420,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T18:03:52.918Z","etag":null,"topics":["datex","pointers","tic-tac-toe","typescript","uix","uix-example","unyt"],"latest_commit_sha":null,"homepage":"https://tic-tac-toe.example.unyt.org","language":"TypeScript","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/unyt-org.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},"funding":{"github":["unyt-org"],"patreon":"unyt","custom":["https://unyt.org/donate"]}},"created_at":"2023-09-15T16:05:40.000Z","updated_at":"2025-04-07T14:08:45.000Z","dependencies_parsed_at":"2023-09-16T10:24:47.483Z","dependency_job_id":"4014b4ef-8aeb-4aa4-ba41-c5f1d0ad4877","html_url":"https://github.com/unyt-org/example-tic-tac-toe","commit_stats":null,"previous_names":["unyt-org/example-tic-tac-toe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unyt-org/example-tic-tac-toe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-tic-tac-toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-tic-tac-toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-tic-tac-toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-tic-tac-toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unyt-org","download_url":"https://codeload.github.com/unyt-org/example-tic-tac-toe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-tic-tac-toe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263245295,"owners_count":23436511,"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":["datex","pointers","tic-tac-toe","typescript","uix","uix-example","unyt"],"created_at":"2024-11-21T01:25:01.696Z","updated_at":"2025-07-03T02:05:32.050Z","avatar_url":"https://github.com/unyt-org.png","language":"TypeScript","readme":"# Example: Tic Tac Toe\n\nThis repository demonstrates some essential concept of the\n[UIX](https://uix.unyt.org) framework such as\n[pointers](https://unyt.org/glossary#pointer) and\n[Web components](https://unyt.org/glossary#web-components) using the example of\na **Tic Tac Toe game**.\n\nThe repository implements [front-end](https://unyt.org/glossary#back-end)\nrendering.\n\n## Installation\n\n1. Install the **UIX command line tool** following the\n   [Getting Started](https://docs.unyt.org/manual/uix/getting-started#the-uix-command-line-tool)\n   guide in our documentation.\n\n2. Clone this repository to your local machine:\n\n   ```bash\n   $ git clone https://github.com/unyt-org/example-tic-tac-toe.git\n   ```\n3. Run the project local\n   ```bash\n   $ uix --port 8000\n   ```\n4. Navigate to your favourite web browser and open http://localhost:8000 to see\n   everything in action.\n\n## Structure\n\nThis diagram outlines the UIX default project structure. We split our code base\nin [back-end](https://unyt.org/glossary#back-end),\n[front-end](https://unyt.org/glossary#front-end), and commons folder.\n\n```\n.\n└── example-tic-tac-toe/\n    ├── backend/\n    │   ├── .dx                 // Config file for deployment\n    │   ├── Map.ts              // Map for games\n    │   └── entrypoint.tsx      // Back-end entrypoint\n    ├── common/\n    │   ├── components/\n    │   │   ├── GamePage.scss   // Game style declaration\n    │   │   └── GamePage.tsx    // Game component\n    │   └── theme.ts            // Global style theme\n    ├── frontend/\n    │   ├── entrypoint.css      // Front-end style declaration\n    │   └── entrypoint.tsx      // Front-end entrypoint\n    ├── app.dx                  // Endpoint config file\n    └── deno.json               // Deno config file\n```\n\n## Features\n\n- Support for multiple games\n- Reset option\n- Player turn handling\n\n## Preview\n\n\u003cimg src=\".github/screenshot.png\" width=\"400\"\u003e\n\n## Explanation\n\n### Concept of Pointers\n\nIn [UIX](https://uix.unyt.org), [Pointers](https://unyt.org/glossary#pointer)\nare a fundamental concept for managing shared data across different parts of\nyour application. Pointers allow different components or\n[endpoints](https://unyt.org/glossary#endpoint) to access and modify the same\ndata. In the context of our game, a Pointer could represent a single value of a\ntile (either empty, `X` or `O`).\n\nPointers are synchronized over the\n[Supranet](https://unyt.org/glossary#supranet), based on our powerful\n[DATEX](https://datex.unyt.org) networking protocol that ensures real-time\nupdates and consistency across endpoints. When one user checks a tile, the\nchanges are propagated to the other player through the Supranet, keeping the\ndata in sync.\n\n---\n\n\u003csub\u003e\u0026copy; unyt 2025 • [unyt.org](https://unyt.org)\u003c/sub\u003e\n","funding_links":["https://github.com/sponsors/unyt-org","https://patreon.com/unyt","https://unyt.org/donate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funyt-org%2Fexample-tic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funyt-org%2Fexample-tic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funyt-org%2Fexample-tic-tac-toe/lists"}