{"id":21511550,"url":"https://github.com/mitulmanish/tictactoe_in_ruby","last_synced_at":"2026-05-18T02:31:53.160Z","repository":{"id":91095686,"uuid":"44610070","full_name":"mitulmanish/tictactoe_in_ruby","owner":"mitulmanish","description":"TicTacToe (Simple n X n board game)","archived":false,"fork":false,"pushed_at":"2016-07-01T07:34:02.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T15:59:46.596Z","etag":null,"topics":["board","game","rspec-spec","ruby","tic-tac-toe"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/mitulmanish.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-10-20T14:00:02.000Z","updated_at":"2017-03-01T03:39:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"40788949-abd4-4551-953f-8e7a3b3a5845","html_url":"https://github.com/mitulmanish/tictactoe_in_ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mitulmanish/tictactoe_in_ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitulmanish%2Ftictactoe_in_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitulmanish%2Ftictactoe_in_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitulmanish%2Ftictactoe_in_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitulmanish%2Ftictactoe_in_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitulmanish","download_url":"https://codeload.github.com/mitulmanish/tictactoe_in_ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitulmanish%2Ftictactoe_in_ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","rspec-spec","ruby","tic-tac-toe"],"created_at":"2024-11-23T22:15:29.324Z","updated_at":"2026-05-18T02:31:53.149Z","avatar_url":"https://github.com/mitulmanish.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"##TicTacToe Game\n\nTo run the script ,please navigate to the root of the folder.\n- Run “ bundle install “ to install the dependencies\n- Run “ ruby run.rb” to run the program\n- Run “ rspec spec/board_spec.rb “ to run the board test script\n- Run “ rspec spec/player_spec.rb “ to run the player test script\n\n# tictactoe_in_ruby\nTicTacToe (Simple 3 X 3 board game)\n\n## tic-tac-toe\n\nUsing a language of your choosing, you will need to create a slightly simplified nxn tic-tac-toe game.\n\nYour initial 'board' is a grid of nxn squares. As game play progresses,\neach square can get filled by an 'X', 'O', or remain empty - just like normal\ntic-tac-toe.  The game is won with three in a row of 'X' or 'O' in any\ndirection, _not_ including diagonals (that's the simplification).\n\nYou will have one 'board', through which the players will play.\n\nHere's an example of how the board might be used to play through a game (in Ruby):\n\n    def playgame\n\n      board = Board.new(3)\n\n      board.square_is(1, 1, 'X')\n      board.square_is(1, 0, 'O')\n      board.square_is(0, 1, 'X')\n      board.square_is(2, 1, 'O')\n      board.square_is(0, 2, 'X')\n      board.square_is(2, 0, 'O')\n\n      # check for a winner - won't find one.\n\n      board.square_is(0, 0, 'X')\n\n      # check for a winner - X has won.\n\n    end\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitulmanish%2Ftictactoe_in_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitulmanish%2Ftictactoe_in_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitulmanish%2Ftictactoe_in_ruby/lists"}