{"id":22152253,"url":"https://github.com/fabiogra/tris","last_synced_at":"2025-07-28T15:05:38.877Z","repository":{"id":265567871,"uuid":"896265363","full_name":"fabiogra/tris","owner":"fabiogra","description":"A streamlit multiplayer game","archived":false,"fork":false,"pushed_at":"2024-12-04T20:37:55.000Z","size":832,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T16:06:45.943Z","etag":null,"topics":["game","python","streamlit","webapp"],"latest_commit_sha":null,"homepage":"https://playtris.streamlit.app","language":"Python","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/fabiogra.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,"zenodo":null}},"created_at":"2024-11-29T23:05:47.000Z","updated_at":"2024-12-26T15:41:00.000Z","dependencies_parsed_at":"2025-04-10T15:44:08.880Z","dependency_job_id":"92640b73-d218-411d-ba89-a247eb398644","html_url":"https://github.com/fabiogra/tris","commit_stats":null,"previous_names":["fabiogra/tris"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fabiogra/tris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiogra%2Ftris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiogra%2Ftris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiogra%2Ftris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiogra%2Ftris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiogra","download_url":"https://codeload.github.com/fabiogra/tris/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiogra%2Ftris/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267534874,"owners_count":24103189,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["game","python","streamlit","webapp"],"created_at":"2024-12-02T00:49:18.558Z","updated_at":"2025-07-28T15:05:38.860Z","avatar_url":"https://github.com/fabiogra.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tris - First Multiplayer Game in Streamlit\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logotris-min.png\" width=\"200\" alt=\"Tris Logo\"\u003e\n\u003c/p\u003e\n\nTris is a multiplayer Tic Tac Toe game built with Streamlit. \n\nWhy Tris? Because it's the Italian name for \"Tic Tac Toe\". 🇮🇹\n\n## 🎮 Play Now\n\nTry it out at [playtris.streamlit.app](https://playtris.streamlit.app)\n\n## 🎯 About the Game\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"demo.gif\" width=\"300\" alt=\"Gameplay Demo\"\u003e\n\u003c/p\u003e\n\nTris has a fascinating history: it was played in ancient Rome under the name \"terni lapilli\" by Roman soldiers. In 1952, it made computer science history as the first game ever played by a computer, through a program called OXO developed for the EDSAC computer.\n\nThe game is particularly interesting from a computer science perspective as it's:\n- A perfect information game\n- A zero-sum game\n- Has a known \"perfect strategy\" (Nash equilibrium)\n- Often used to teach game theory and AI basics\n\n\n## ✨ Features\n\n- **Multiplayer Mode**: Play with friends by sharing a unique match link\n- **AI Player**: Test your skills against our AI\n- **Easy Sharing**: Quick game sharing via WhatsApp\n- **Modern UI**: Clean interface with responsive design\n\n## 🛠️ Built With Pure Streamlit Magic\n\n- Cache Resource and Session state for game management\n- Dialogs for smooth interactions\n- Custom CSS for that extra polish\n- Latest released feature \"segmented control\" for game mode selection\n\n## 🚀 Quick Start\n\n1. Clone the repository\n```bash\ngit clone https://github.com/fabiogra/tris.git\ncd tris\n```\n\n2. Install dependencies\n```bash\npip install -r requirements.txt\n```\n\n3. Run the app\n```bash\nstreamlit run app/main.py\n```\n\n## 📝 How to Play\n\nThe game is played on a 3x3 grid. Players take turns marking empty cells with their symbol (traditionally X and O). The winner is the first player to get three of their symbols in a row - horizontally, vertically, or diagonally. If all cells are filled without a winner, the game is a draw (known as \"patta\" in Italian chess terminology).\n\n1. Visit [playtris.streamlit.app](https://playtris.streamlit.app)\n2. Choose your game mode (Multiplayer or AI)\n3. For multiplayer:\n   - Create a new match\n   - Share the link with your friend\n   - Start playing when they join!\n4. For AI mode:\n   - Toggle \"Play against AI\"\n   - Create a new match\n   - Play against our AI!\n\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiogra%2Ftris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiogra%2Ftris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiogra%2Ftris/lists"}