{"id":16372446,"url":"https://github.com/mgwidmann/tic_tac_toe","last_synced_at":"2026-03-13T18:30:22.873Z","repository":{"id":22222611,"uuid":"25555492","full_name":"mgwidmann/tic_tac_toe","owner":"mgwidmann","description":"Console based tic-tac-toe game.","archived":false,"fork":false,"pushed_at":"2014-10-23T22:04:25.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T17:19:43.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"taolu-committee/Awsome-Front-End-learning-resource","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgwidmann.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}},"created_at":"2014-10-22T01:35:28.000Z","updated_at":"2014-10-23T04:44:54.000Z","dependencies_parsed_at":"2022-08-20T09:10:37.107Z","dependency_job_id":null,"html_url":"https://github.com/mgwidmann/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/mgwidmann%2Ftic_tac_toe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgwidmann%2Ftic_tac_toe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgwidmann%2Ftic_tac_toe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgwidmann%2Ftic_tac_toe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgwidmann","download_url":"https://codeload.github.com/mgwidmann/tic_tac_toe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921881,"owners_count":19718842,"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-10-11T03:11:25.289Z","updated_at":"2026-03-13T18:30:22.787Z","avatar_url":"https://github.com/mgwidmann.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"tic_tac_toe\n===========\n\nConsole based tic-tac-toe game.\n\n# Installation\n\nTo install, run the install command:\n\n    npm install\n\n# Tests\n\nTo run the test suite run the following command:\n\n    npm test\n\nThis will watch the repository and rerun tests when they change. Hit Ctrl-C to exit.\n\n# Playing the game\n\nTo start up the game, simply run the following command:\n\n    npm start\n\n## Example playing\n\n    npm start\n\n    \u003e tic_tac_toe@1.0.0 start /Users/matt/code/node/tic_tac_toe\n    \u003e node main.js\n\n    Welcome to TicTacToe!\n      To see a list of commands type 'help', to exit type 'exit'\n    TicTacToe\u003e\n\nTyping `help` or `exit` will perform those actions. The help screen looks like this:\n\n    TicTacToe\u003e help\n    Below are the list of commands. To see more information, type 'help \u003ccommand\u003e'\n        help              Shows this help prompt\n        exit              Exit the game\n        start \u003csize\u003e      Starts the game with the a board the size of \u003csize\u003e\n        move \u003cx\u003e \u003cy\u003e      When in a game, makes a move at the \u003cx\u003e, \u003cy\u003e position\n\nTo start a game, you must first decide how big of a board you want to play on. All boards are perfect squares, so you only need enter one number. To start a new game, simply use the `start` command:\n\n    TicTacToe\u003e start 3\n          1   2   3\n       ╭───┭───┭───╮\n    1  ┃ _ ┃ _ ┃ _ ┃\n    2  ┃ _ ┃ _ ┃ _ ┃\n    3  ┃ _ ┃ _ ┃ _ ┃\n       ╰───┵───┵───╯\n    TicTacToe\u003e\n\nOnce started, you may use the `move` command to place a move. The `move` command takes its parameters seprated by spaces in the format `move x y`. To move to position (1,2) where X is 1 and Y is 2 (X being the horizontal axis and Y being the vertical axis), type the following:\n\n    TicTacToe\u003e move 1 2\n\nYou will see the CPU thinking for a brief moment, and then the board will be redrawn.\n\n    Moving CPU to 2 2\n          1   2   3\n       ╭───┭───┭───╮\n    1  ┃ _ ┃ X ┃ _ ┃\n    2  ┃ _ ┃ O ┃ _ ┃\n    3  ┃ _ ┃ _ ┃ _ ┃\n       ╰───┵───┵───╯\n    TicTacToe\u003e\n\nContinue making moves until either you or the CPU win the game!\n\n    TicTacToe\u003e move 1 3\n    Of course, you beat the stupid computer... Start a new game with 'start 3'\n          1   2   3\n       ╭───┭───┭───╮\n    1  ┃ X ┃ X ┃ X ┃\n    2  ┃ _ ┃ O ┃ _ ┃\n    3  ┃ _ ┃ O ┃ _ ┃\n       ╰───┵───┵───╯\n    TicTacToe\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgwidmann%2Ftic_tac_toe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgwidmann%2Ftic_tac_toe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgwidmann%2Ftic_tac_toe/lists"}