{"id":17812149,"url":"https://github.com/ampaire/tic-tac-toe","last_synced_at":"2025-09-11T12:32:29.649Z","repository":{"id":124215010,"uuid":"217084481","full_name":"ampaire/Tic-tac-toe","owner":"ampaire","description":"This is an implementation of the tic tac toe game in ruby","archived":false,"fork":false,"pushed_at":"2021-05-05T14:33:24.000Z","size":216,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2024-12-28T19:34:16.011Z","etag":null,"topics":["board","game","microverse-projects","player","ruby","turns"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ampaire.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}},"created_at":"2019-10-23T14:57:15.000Z","updated_at":"2022-07-25T23:27:31.000Z","dependencies_parsed_at":"2023-06-18T07:31:20.117Z","dependency_job_id":null,"html_url":"https://github.com/ampaire/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/ampaire%2FTic-tac-toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampaire%2FTic-tac-toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampaire%2FTic-tac-toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampaire%2FTic-tac-toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ampaire","download_url":"https://codeload.github.com/ampaire/Tic-tac-toe/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232647496,"owners_count":18555455,"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":["board","game","microverse-projects","player","ruby","turns"],"created_at":"2024-10-27T15:58:28.302Z","updated_at":"2025-01-05T22:19:40.010Z","avatar_url":"https://github.com/ampaire.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e TIC TAC TOE \u003c/h1\u003e\n\n\n\u003cdiv align=\"center\"\u003e\u003cimg src=\"img/2.png\"\u003e\u003c/div\u003e\n\nThis is an implementation of the Tic tac toe game in Ruby language. \n\nTic tac toe is a game played by two players who take turns in fillimg the positions on the game board until there is a winner or till the board is full. The winner is the one who manages to have three of their marks in a straight line. If the board is full and there is no player with three of their marks in a straight line, then it's considered to be a draw.\n\n## RULES\nThere was no UI created for this game so the game is played in the commandline after running the command ``ruby bin/main.rb`` within the project directory.\n\n- Play occurs on a 3 by 3 grid of 9 squares.\n\n- Two players take turns only in the empty squares, the first making X's, the second O's.\n\n- A row is any three squares on the grid, adjacent, diagonally, vertically, or horizontally.\n\n- If one player places three of the same marks in a row, the player WINS! :D\n\n- If the spaces are all filled and there is no winner, the game ends in a draw. :( \n\n## INSTRUCTIONS\n\nTo start the game, in a terminal navigate to the root directory and type:\n\n`ruby bin/main.rb`\n\nor if using Windows you can simply run\n\n`main.exe`\n\n\n\u003cdiv align=\"center\"\u003e \u003cimg width=\"400\" src=\"img/1.png\"\u003e \u003c/div\u003e\n\nThis is the starting screen of the game, here we have the header which includes the instructions for playing the game.\n\nThe first player who is player_one is asked to enter their name and is assigned to use letter `X` in the game while the second player who is player_two is assigned the letter 'O' once they have entered their names. \n\n\nOn the main game state, we have a numbered board with numbers ranging from 1 to 9 and a message prompting for user input. Player 'X' starts typing a number from 1 to 9 and pressing enter. Player 'O' will then be prompted for a number from 1 to 9. \n\nIf a player inputs an invalid number, he'll receive a warning and will be prompted for input again, until a valid value is provided. The game goes on until one of the players wins or when the board is full and we have a draw. \n\nThe game will display the winner or a draw incase the board is full and there is no winner.\n\n\n\u003cdiv align=\"center\"\u003e \u003cimg src=\"img/2.png\"\u003e \u003c/div\u003e\n\n## AUTHORS\nMade by the Awesome Duo \n- Github-\u003e [@ampaire](https://github.com/ampaire)\n- Twitter-\u003e [@AmpaPhem](https://twitter.com/AmpaPhem)\n- LinkedIn-\u003e [Ampaire Phemia](https://www.linkedin.com/in/phemia) and \n- [David Garcia](https://github.com/davitomix)\n\n## CONTRIBUTIONS\n\nIf you find issues or would like to make a suggestion on how we can improve our project, please post it on the [issues page](https://github.com/ampaire/Tic-tac-toe/issues).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampaire%2Ftic-tac-toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fampaire%2Ftic-tac-toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampaire%2Ftic-tac-toe/lists"}