{"id":19469841,"url":"https://github.com/sushmey/tictactoe-engine","last_synced_at":"2026-06-09T01:33:55.241Z","repository":{"id":112191273,"uuid":"322274580","full_name":"Sushmey/TicTacToe-Engine","owner":"Sushmey","description":"TicTacToe engine. Computer plays TicTacToe as X, player plays as O","archived":false,"fork":false,"pushed_at":"2021-04-06T13:23:13.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-19T01:03:03.990Z","etag":null,"topics":["minimax-algorithm","minimax-alpha-beta-pruning","tictactoe-game","tictactoe-java-game"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Sushmey.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":"2020-12-17T11:30:51.000Z","updated_at":"2021-04-06T13:23:15.000Z","dependencies_parsed_at":"2023-05-16T01:00:43.821Z","dependency_job_id":null,"html_url":"https://github.com/Sushmey/TicTacToe-Engine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sushmey/TicTacToe-Engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sushmey%2FTicTacToe-Engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sushmey%2FTicTacToe-Engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sushmey%2FTicTacToe-Engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sushmey%2FTicTacToe-Engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sushmey","download_url":"https://codeload.github.com/Sushmey/TicTacToe-Engine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sushmey%2FTicTacToe-Engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34088013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":["minimax-algorithm","minimax-alpha-beta-pruning","tictactoe-game","tictactoe-java-game"],"created_at":"2024-11-10T18:54:29.639Z","updated_at":"2026-06-09T01:33:55.217Z","avatar_url":"https://github.com/Sushmey.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TicTacToe-Engine\nThis repository contains one file which has the Java code of a TicTacToe Engine. \nThe computer plays as X and the player is O. \nPlayer has to input coordinates of the cells of the matrix starting from (1 ,1) for first row first column and (3,3) for the last row, last column. \nThis code uses MiniMax algorithm with Alpha-Beta Pruning for faster computation since it doesn't need to test out all the possible outcomes.\nThis makes the execution 10-20 times faster.\nYou can also use the depth parameter incase you don't want to make the tree very large but in a game with 9 squares this won't be that much of a problem so I didn't feel like using it myself.\n\n# How to play\nThe computer prints the board with its move since it is X. You have to input your cell number of the matrix where you want to mark O.\nFor example,\n\n![](Images/1.png)\n\nhere you want to stop the computer from winning then you should input 1,3.\nThis will mark the O at this position,\n\n![](Images/2.png)\n\nThis was my first attempt at working with a minimax algorithm and its so fascinating to see a computer figure out moves to play against you almost like a real human.\nFeel free to let me know how I can make this code better :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsushmey%2Ftictactoe-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsushmey%2Ftictactoe-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsushmey%2Ftictactoe-engine/lists"}