{"id":23400507,"url":"https://github.com/luckyforce/tictactoe","last_synced_at":"2025-04-11T18:33:50.271Z","repository":{"id":199237151,"uuid":"455729961","full_name":"LuckyForce/TicTacToe","owner":"LuckyForce","description":"A TicTacToe Game with an inbuilt algorithm that never loses.","archived":false,"fork":false,"pushed_at":"2022-02-14T13:55:45.000Z","size":22,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T14:39:01.245Z","etag":null,"topics":["ai","algorithm","java","java-8","tictactoe"],"latest_commit_sha":null,"homepage":"https://adrian-schauer.at/","language":"Java","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/LuckyForce.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}},"created_at":"2022-02-04T23:48:09.000Z","updated_at":"2022-04-08T11:51:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"f90c555a-4644-41e8-8239-fb5ec882b5e4","html_url":"https://github.com/LuckyForce/TicTacToe","commit_stats":null,"previous_names":["luckyforce/tictactoe"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckyForce%2FTicTacToe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckyForce%2FTicTacToe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckyForce%2FTicTacToe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckyForce%2FTicTacToe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuckyForce","download_url":"https://codeload.github.com/LuckyForce/TicTacToe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248459126,"owners_count":21107233,"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":["ai","algorithm","java","java-8","tictactoe"],"created_at":"2024-12-22T10:45:14.741Z","updated_at":"2025-04-11T18:33:50.224Z","avatar_url":"https://github.com/LuckyForce.png","language":"Java","readme":"# TicTacToe\n\n## Description\nA TicTacToe Game with an inbuilt algorithm that never loses.\u003cbr\u003e\nI made this game in first grade of HTL in order of a an assignment.\u003cbr\u003e\nThe GUI and the first structures were initially provided by my teacher Professor Schildberger.\u003cbr\u003e\nThe goal was to make a playable game by just programming the backend of the game and listen to the already given mouse events.\u003cbr\u003e\nI extended this assignment by adding another listener for the mouse wheel and two more modes to the game where an algorithm containing switches and ifs is used to determine the next move.\n\n\u003cimg src=\"screenshots/game.PNG\" alt=\"Game Screenshot\"\u003e\u003c/img\u003e\n\n## How to run the game\nRight Click the executable JAR file and select \"Run As\" -\u003e \"Java Application\"\u003cbr\u003e\nThis game was created with simple inbuilt Java Code and compiled in Java 1.8 so you should be able to run the application without any additional libraries.\n\n## How to play\n\n1. The game is played on a 3x3 grid.\n2. You and the computer take turns placing pieces on the grid.\n3. The first player to get three of their pieces in a row wins.\n4. If all 9 squares are filled and no player has 3 in a row, then the game is a draw.\n\n## Controls\nLeft click to place a X.\u003cbr\u003e\nRight click to place a O.\u003cbr\u003e\nMouse wheel to change Mode.\u003cbr\u003e\nMouse wheel click to show Game Instructions.\u003cbr\u003e\nMouse wheel mid game to restart the game.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckyforce%2Ftictactoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluckyforce%2Ftictactoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckyforce%2Ftictactoe/lists"}