{"id":22434628,"url":"https://github.com/KalbarczykDev/java-tick-tack-toe","last_synced_at":"2025-10-16T02:30:27.211Z","repository":{"id":159199833,"uuid":"634504809","full_name":"OsLint/tick-tack-toe-java","owner":"OsLint","description":"🎮 This is a simple Tic-Tac-Toe game implemented in the console using vanilla java.","archived":false,"fork":false,"pushed_at":"2023-06-15T19:01:04.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-05T23:09:40.312Z","etag":null,"topics":["begginer-friendly","begginer-project","begginersguide","java","tik-tac-toe"],"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/OsLint.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}},"created_at":"2023-04-30T10:50:11.000Z","updated_at":"2024-09-23T12:35:38.000Z","dependencies_parsed_at":"2023-06-30T06:00:58.445Z","dependency_job_id":null,"html_url":"https://github.com/OsLint/tick-tack-toe-java","commit_stats":null,"previous_names":["oskalbarczyk/tick-tack-toe-java","okdotdev/tick-tack-toe-java","oslint/tick-tack-toe-java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsLint%2Ftick-tack-toe-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsLint%2Ftick-tack-toe-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsLint%2Ftick-tack-toe-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsLint%2Ftick-tack-toe-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OsLint","download_url":"https://codeload.github.com/OsLint/tick-tack-toe-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236664666,"owners_count":19185536,"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":["begginer-friendly","begginer-project","begginersguide","java","tik-tac-toe"],"created_at":"2024-12-05T23:09:43.888Z","updated_at":"2025-10-16T02:30:21.910Z","avatar_url":"https://github.com/OsLint.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Tic-Tac-Toe in Console\n\n🎮 This is a simple Tic-Tac-Toe game implemented in the console.\n\n## Author\n\n👤 Oskar Kalbarczyk\n\n🌐 GitHub: [https://github.com/oskalbarczyk](https://github.com/oskalbarczyk)\n\n📺 YouTube Channel: [Code with Oskar](https://www.youtube.com/@codewithoskar)\n\n## How to Play\n\n1. Run the program.\n2. The game will display a 3x3 grid representing the Tic-Tac-Toe board.\n3. The first player is always 'O', and the second player is 'X'.\n4. The players take turns to choose a field they want to cover.\n5. When prompted, enter the number of the field you want to choose (1-9).\n6. The game will validate the move and update the board accordingly.\n7. The game will continue until a player wins or the board is full.\n8. The game will display \"Game Over!\" when it ends.\n\n## Gameplay\n\nThe game uses the numbers 1-9 to represent the fields on the board. The grid is displayed as follows:\n\n|1|2|3|\n|4|5|6|\n|7|8|9|\n\nWhen it's your turn, select the field number you want to cover. For example, if you want to cover the top-right corner, enter '3'.\n\n## Winning Conditions\n\nThe game checks for the following winning conditions:\n\n- Rows: If a player covers all fields in a row, they win.\n- Columns: If a player covers all fields in a column, they win.\n- Diagonals: If a player covers all fields in a diagonal, they win.\n\n## Building the Project\n\nTo compile and run the project, ensure you have Java installed on your system. Then follow these steps:\n\n1. Save the code into a file named `Main.java`.\n2. Open a command prompt or terminal window.\n3. Navigate to the directory where you saved the file.\n4. Compile the code by running the command: `javac Main.java`\n5. Run the program using the command: `java Main`\n\nEnjoy playing Tic-Tac-Toe in the console! 🎉\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKalbarczykDev%2Fjava-tick-tack-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKalbarczykDev%2Fjava-tick-tack-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKalbarczykDev%2Fjava-tick-tack-toe/lists"}