{"id":15551472,"url":"https://github.com/knosmos/tres","last_synced_at":"2025-06-23T03:33:51.189Z","repository":{"id":169420688,"uuid":"382415750","full_name":"knosmos/tres","owner":"knosmos","description":"The classic online multiplayer card game ripoff","archived":false,"fork":false,"pushed_at":"2024-06-05T21:09:14.000Z","size":545,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T05:53:31.520Z","etag":null,"topics":["clone","flask","multiplayer-game","uno-game"],"latest_commit_sha":null,"homepage":"","language":"Python","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/knosmos.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,"zenodo":null}},"created_at":"2021-07-02T17:19:21.000Z","updated_at":"2024-10-08T17:48:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e845b38-b0c9-4ab1-a81c-d125c824d1c2","html_url":"https://github.com/knosmos/tres","commit_stats":null,"previous_names":["knosmos/tres"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knosmos%2Ftres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knosmos%2Ftres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knosmos%2Ftres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knosmos%2Ftres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knosmos","download_url":"https://codeload.github.com/knosmos/tres/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250513303,"owners_count":21443197,"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":["clone","flask","multiplayer-game","uno-game"],"created_at":"2024-10-02T14:05:07.966Z","updated_at":"2025-04-23T20:41:52.433Z","avatar_url":"https://github.com/knosmos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tres\n*By Jieruei Chang 2021*\n\n![Tres picture](https://user-images.githubusercontent.com/30610197/124502398-6803ad80-dd91-11eb-8c46-1585ae59c987.png)\n\nTRES is an online Uno clone. It features multiplayer support, a clean UI, and somewhat competent AI players with different strategies. It uses a HTML/JS frontend hosted on Github Pages,\nand a Flask backend running on PythonAnywhere. You can play at [knosmos.github.io/tres](https://knosmos.github.io/tres).\n\n## Gameplay\nThe objective is to be the first player to play all of the cards in their hand. At the start of the game, each player is dealt seven cards.\nOn their turn, a player may play one card from their hand, or draw a card from the deck. A played card must have the same number/symbol or\ncolor as the card currently at the top of the discard pile. If they cannot play any cards, they must draw. The implemented \"Special cards\"\n(Reverse, Cancel, +2, Wild) function identically to regular Uno.\n\n## Running TRES locally\n### Dependencies\n- flask\n- flask-cors\n\n### Folder structure\nThe Flask server code is stored in the `server` directory. The client code is stored in the `docs` directory. The `docs` directory is named that way\nbecause Github Pages annoyingly only supports serving from root or `docs`. All image assets are stored in `docs/assets`.\n\n### Starting the server\nNavigate to the `server` directory and run `py server.py`.\n\n### Connecting to the server\nTake note of the web address that the server displays. It should look something like `http://192.168.1.4:5000/`.\nOpen `docs/constants.js` and change the value of `SERVERURL` (which should be `https://tres3.pythonanywhere.com`) with the server address. Open `index.html` and\nyou should be able to play.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknosmos%2Ftres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknosmos%2Ftres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknosmos%2Ftres/lists"}