{"id":27933087,"url":"https://github.com/shendriks/tic-tac-toe-java","last_synced_at":"2025-05-07T04:27:22.309Z","repository":{"id":291589141,"uuid":"977959301","full_name":"shendriks/tic-tac-toe-java","owner":"shendriks","description":"A CLI implementation of Tic Tac Toe in Java using the Minimax algorithm","archived":false,"fork":false,"pushed_at":"2025-05-05T14:04:12.000Z","size":86,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T14:48:32.189Z","etag":null,"topics":["java","minimax","minimax-algorithm","tic-tac-toe","tic-tac-toe-game","tictactoe"],"latest_commit_sha":null,"homepage":"","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/shendriks.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-05T08:50:58.000Z","updated_at":"2025-05-05T13:36:56.000Z","dependencies_parsed_at":"2025-05-07T04:15:22.857Z","dependency_job_id":null,"html_url":"https://github.com/shendriks/tic-tac-toe-java","commit_stats":null,"previous_names":["shendriks/tic-tac-toe-java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shendriks%2Ftic-tac-toe-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shendriks%2Ftic-tac-toe-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shendriks%2Ftic-tac-toe-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shendriks%2Ftic-tac-toe-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shendriks","download_url":"https://codeload.github.com/shendriks/tic-tac-toe-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252812554,"owners_count":21808160,"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":["java","minimax","minimax-algorithm","tic-tac-toe","tic-tac-toe-game","tictactoe"],"created_at":"2025-05-07T04:27:21.797Z","updated_at":"2025-05-07T04:27:22.292Z","avatar_url":"https://github.com/shendriks.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tic-tac-toe\n\n[![Java CI with Gradle](https://github.com/shendriks/tic-tac-toe-java/actions/workflows/gradle.yml/badge.svg)](https://github.com/shendriks/tic-tac-toe-java/actions/workflows/gradle.yml)\n\nA CLI implementation of Tic Tac Toe in Java using the Minimax algorithm\n\n## How to play\n\nThis is a simple CLI application. Once started, it expects the user to enter a\ncommand: \n\n```text\nInput command (type help for help): \n```\n\nThere are three commands:\n\n1. `help`\n2. `start \u003cplayer_1\u003e \u003cplayer_2\u003e` with `\u003cplayer_n\u003e` being one of: `user`, `easy`, `medium`, `hard`\n3. `exit` \n\nThe `help` command prints some helpful information about the commands available, while the `exit` command exits the\napplication. This leaves us with the `start \u003cplayer_1\u003e \u003cplayer_2\u003e` command which expects the types of the two players.\n\n### The Player Types\n\nThere are four player types:\n\n1. `user`: a human player\n2. `easy`, `medium` and `hard`: more or less \"intelligent\" opponents controlled by the computer\n\nWhen it's a human player's turn, they are asked to enter the coordinates of their next move in form of two integers\nranging from 1 to 3 each, e.g.:\n\n```text\nEnter the coordinates [row column]: 1 1\n```\n\nBy entering `1 1` an X (or an O - depending on if they're the first or second player) is placed in the upper left corner\nof the board:\n\n```text\n+-------+\n| X     |\n|       |\n|       |\n+-------+\n```\n\n### Computer controlled Opponents\n* `easy` - this one just makes random moves\n* `medium` - this one makes random moves, unless they can make a winning move (if they already have two in a row) or a \n   blocking move (if the opponent has two in a row)\n* `hard` - this one uses the Minimax algorithm to make the best move possible\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshendriks%2Ftic-tac-toe-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshendriks%2Ftic-tac-toe-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshendriks%2Ftic-tac-toe-java/lists"}