{"id":20975363,"url":"https://github.com/ternion-1121/tic-tac-toe","last_synced_at":"2025-03-13T09:17:53.021Z","repository":{"id":44892270,"uuid":"512849620","full_name":"TERNION-1121/Tic-Tac-Toe","owner":"TERNION-1121","description":"Simple, Two-Player, Tic-Tac-Toe game","archived":false,"fork":false,"pushed_at":"2023-03-03T14:23:14.000Z","size":5598,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T05:43:44.270Z","etag":null,"topics":["game","project","pythonprogramming","tic-tac-toe","tic-tac-toe-game","tictactoe","tictactoe-game","tictactoe-python"],"latest_commit_sha":null,"homepage":"","language":"C","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/TERNION-1121.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":"2022-07-11T17:28:10.000Z","updated_at":"2024-01-18T16:30:53.000Z","dependencies_parsed_at":"2024-11-19T05:01:07.560Z","dependency_job_id":null,"html_url":"https://github.com/TERNION-1121/Tic-Tac-Toe","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/TERNION-1121%2FTic-Tac-Toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TERNION-1121%2FTic-Tac-Toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TERNION-1121%2FTic-Tac-Toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TERNION-1121%2FTic-Tac-Toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TERNION-1121","download_url":"https://codeload.github.com/TERNION-1121/Tic-Tac-Toe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243374326,"owners_count":20280661,"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":["game","project","pythonprogramming","tic-tac-toe","tic-tac-toe-game","tictactoe","tictactoe-game","tictactoe-python"],"created_at":"2024-11-19T04:43:21.000Z","updated_at":"2025-03-13T09:17:53.001Z","avatar_url":"https://github.com/TERNION-1121.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align = \"center\"\u003e❌ Tic-Tac-Toe ⭕\u003c/h1\u003e\n \u003cbr\u003e\n \nThis program is a Tic-Tac-Toe boardgame, which can be played in the terminal/console window; made in C.\n\n![image](https://user-images.githubusercontent.com/97667653/222738507-3a5af10f-74b3-4c01-8a7d-6350fc0ba949.png)\n\nModes available to play:\n1. Human v/s Human.\n2. Human v/s A.I.\t\n\n\u003cbr\u003e\n\n## func `main()`\n\nIt comprises of various other functions, which control the various parts of the game.\nAlthough the two main ones being:\n- func `human_vs_human()`\n- func `human_vs_ai()`\n\t\n\u003chr\u003e\n\n### `human_vs_human()`\n\nIt allows two humans to play against each other, each time the turn alternating.\n\n![image](https://user-images.githubusercontent.com/97667653/222739003-c72f0a79-827e-4563-bdd2-d7366fb9e339.png)\n![image](https://user-images.githubusercontent.com/97667653/222739053-d4e367ff-b5b2-486d-852b-a36d204f8066.png)\n![image](https://user-images.githubusercontent.com/97667653/222739175-e2bd231d-b3d2-4770-ae2a-d226820eff8c.png)\n\nUpon *game over*, it stops the game.\n\n![image](https://user-images.githubusercontent.com/97667653/222739420-c4b5abdf-1b0b-423f-86d1-9cbf7a9c0fdc.png)\n\n\u003chr\u003e\n\n### `human_vs_ai()`\n\nInitially, it offers a choice to the user.\n\n![image](https://user-images.githubusercontent.com/97667653/222739716-0bbeca26-bc78-4cae-a267-6b7f0823cc3a.png)\n\nUpon choice,\nThe game starts accordingly.\n\nIf the AI has to make the first move, it makes a random move using the func `random_pos()`.\n\nOtherwise, it makes use of the [minimax](https://en.wikipedia.org/wiki/Minimax) algorithm to find the best possible move.\nThe A.I. move is determined upon the use of the functions `minimax()` and `find_best_move()`.\n\n\u003cbr\u003e\n\n*P.S. You can't win against the A.I. :wink:, it's either a draw, or a win for the computer.. Enjoy!*\n\n\u003e You are free to contribute for this repository!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fternion-1121%2Ftic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fternion-1121%2Ftic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fternion-1121%2Ftic-tac-toe/lists"}