{"id":19184444,"url":"https://github.com/connerkt/lab04-tictactoe","last_synced_at":"2025-10-13T15:02:49.246Z","repository":{"id":181234490,"uuid":"666449377","full_name":"ConnerKT/Lab04-TicTacToe","owner":"ConnerKT","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-16T03:34:53.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T04:33:49.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/ConnerKT.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}},"created_at":"2023-07-14T14:44:57.000Z","updated_at":"2023-07-14T14:46:37.000Z","dependencies_parsed_at":"2023-07-14T16:24:15.921Z","dependency_job_id":null,"html_url":"https://github.com/ConnerKT/Lab04-TicTacToe","commit_stats":null,"previous_names":["connerkt/lab04-tictactoe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab04-TicTacToe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab04-TicTacToe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab04-TicTacToe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab04-TicTacToe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConnerKT","download_url":"https://codeload.github.com/ConnerKT/Lab04-TicTacToe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240260322,"owners_count":19773316,"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":[],"created_at":"2024-11-09T11:07:11.970Z","updated_at":"2025-10-13T15:02:44.211Z","avatar_url":"https://github.com/ConnerKT.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic-Tac-Toe\n\nThis is a two-player, turn-based Tic-Tac-Toe program. The program allows players to take turns and marks their chosen positions on the game board until a winner is determined or the game ends in a draw.\n\n## Visuals\n\nThe program is a console based program so it in your terminal it should look like this:\n\n        It is currently John's turn:\n\n        |1||2||3|\n        |4||5||6|\n        |7||8||9|\n        Choose a slot currently\n\n        It is currently Chloe's turn.\n        |X||2||3|\n        |4||5||6|\n        |7||8||9|\n        Choose a slot currently\n\n## Program Specifications\n\nThe solution includes the following components:\n\n- **Game Board**: This class constructs and displays the game board after every turn, showing the updated state of the board. It also includes methods to update the board and check for a winner.\n\n- **Player**: This class holds the player's information, such as their name and marker (X or O). It provides actions that the player can take during the game.\n\n- **Game**: This class controls the flow of the game. It manages switching between players, obtaining input from players, and determining the outcome of the game.\n\n- **Position**: This class represents individual positions on the game board.\n\nThe program handles a bug where if a player selects a position on the board that is already marked, it prompts the player to retake their turn.\n\n## Getting Started\n\nTo play the Tic-Tac-Toe game, follow these steps:\n\n1. Clone the repository to your local machine.\n2. Open the project in your preferred IDE or text editor.\n3. Run the program.\n4. Follow the on-screen instructions to enter the names of the players and their respective markers (X or O).\n5. Each player will take turns selecting a position on the game board by entering the corresponding number.\n6. The game will display the updated board after each turn.\n7. The game ends when a player wins or there is a draw. The program will announce the winner or declare a draw.\n\n## Testing\n\nThe program has been tested for the following functionality:\n\n- Validating winning conditions on the game board.\n- Ensuring that players switch turns correctly.\n- Verifying that the positions chosen by players correlate to the correct index of the game board array.\n- Additional unique test cases.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnerkt%2Flab04-tictactoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnerkt%2Flab04-tictactoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnerkt%2Flab04-tictactoe/lists"}