{"id":22085074,"url":"https://github.com/emilbluemax/tic_tac_toe","last_synced_at":"2025-03-23T21:44:14.001Z","repository":{"id":274739400,"uuid":"608710521","full_name":"emilbluemax/Tic_Tac_Toe","owner":"emilbluemax","description":"Simple Tic Tac Toe game using Python-tkinter","archived":false,"fork":false,"pushed_at":"2023-03-02T17:21:13.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T05:18:57.192Z","etag":null,"topics":["beginner-friendly","game","python","tic-tac-toe","tictactoe-game","tkinter-python"],"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/emilbluemax.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}},"created_at":"2023-03-02T15:25:13.000Z","updated_at":"2023-08-08T14:16:05.000Z","dependencies_parsed_at":"2025-01-29T05:29:02.076Z","dependency_job_id":null,"html_url":"https://github.com/emilbluemax/Tic_Tac_Toe","commit_stats":null,"previous_names":["emilbluemax/tic_tac_toe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilbluemax%2FTic_Tac_Toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilbluemax%2FTic_Tac_Toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilbluemax%2FTic_Tac_Toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilbluemax%2FTic_Tac_Toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emilbluemax","download_url":"https://codeload.github.com/emilbluemax/Tic_Tac_Toe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175357,"owners_count":20572781,"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":["beginner-friendly","game","python","tic-tac-toe","tictactoe-game","tkinter-python"],"created_at":"2024-12-01T01:11:05.741Z","updated_at":"2025-03-23T21:44:13.996Z","avatar_url":"https://github.com/emilbluemax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic Tac Toe\r\n\r\n\u003cspan style=\"color:blue\"\u003eA simple tic tac toe game built using **python-tkinter**\u003c/span\u003e\r\n\r\n---\r\ntkinter is used to build the GUI part of the project\r\n\r\nGame for **2 players**.\u003cbr\u003e\r\nWhere when each player registers one's name they are assigned with a playing token (X,O).\r\nThe game does not begin until the players register their names and are assigned a token.\r\nOn registering the button states become active/normal.\r\n\r\nOnce the player registers their name, they cant change their name again \u003cbr\u003e\r\nPrompts to the users are made using the **message box** module of tkinter\r\n\r\nA global counter is maintained for tracking which player plays.\r\n\r\nThe tic tac toe **grid is made up of buttons** (b1-b9) \u003cbr\u003e\r\nInitial button values are all empty and their states are disabled. \u003cbr\u003e\r\nEach button has a unique callback function on button click to assign X, O button text based on the user who clicks \u003cbr\u003e\r\nThe buttons color changes on click based on the user for a better representation \u003cbr\u003e\r\nOnce a button is clicked, the button gets disabled preventing any further clicks on it. \u003cbr\u003e\r\n\r\nAfter every button click a check function is invoked to check if any user has won the game or not\r\n\r\nThe winning positions are hard coded using if statments since there are only a limited number of winning sequences\u003cbr\u003e\r\nOnce a player wins, a victory message is displayed and the game-window is terminated.\r\n\r\n---\r\n\r\nFor running the program: \r\n+ Clone/Download the program\r\n+ Double click to run\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilbluemax%2Ftic_tac_toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femilbluemax%2Ftic_tac_toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilbluemax%2Ftic_tac_toe/lists"}