{"id":20744609,"url":"https://github.com/npezza93/word_search","last_synced_at":"2025-12-24T11:50:41.228Z","repository":{"id":10574745,"uuid":"66215859","full_name":"npezza93/word_search","owner":"npezza93","description":"Word Search Generator and Solver","archived":false,"fork":false,"pushed_at":"2023-01-18T20:37:28.000Z","size":19547,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T05:45:09.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pezza.co/word_search","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npezza93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-21T19:08:23.000Z","updated_at":"2020-06-25T13:04:48.000Z","dependencies_parsed_at":"2023-02-10T17:45:32.298Z","dependency_job_id":null,"html_url":"https://github.com/npezza93/word_search","commit_stats":null,"previous_names":["npezza93/word_searcher"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npezza93%2Fword_search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npezza93%2Fword_search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npezza93%2Fword_search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npezza93%2Fword_search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npezza93","download_url":"https://codeload.github.com/npezza93/word_search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243039587,"owners_count":20226131,"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-17T07:16:20.973Z","updated_at":"2025-12-24T11:50:41.196Z","avatar_url":"https://github.com/npezza93.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![Word Search](https://raw.githubusercontent.com/google/material-design-icons/master/action/drawable-xxxhdpi/ic_search_black_18dp.png)Word Search Generator and Solver\n\n[![Build Status](https://travis-ci.org/npezza93/word_search.svg?branch=master)](https://travis-ci.org/npezza93/word_search)\n[![Code Climate](https://codeclimate.com/github/npezza93/word_search/badges/gpa.svg)](https://codeclimate.com/github/npezza93/word_search)\n[![Test Coverage](https://codeclimate.com/github/npezza93/word_search/badges/coverage.svg)](https://codeclimate.com/github/npezza93/word_search/coverage)\n\n## Install\nAdd WordSearch to your `Gemfile` and `bundle install`:\n\n`gem \"word_search\"`\n\nAlternatively, you can install the gem from [rubygems.org](https://rubygems.org/):\n\n`gem install word_search`\n\n## Usage\n\nTo create a plane with just random letters in each position:\n\n```ruby\n❯ plane = WordSearch::Plane.new(5, 5)\n❯ plane.add_letters\n# To traverse the cartesian plane:\n❯ plane[0][3]\n=\u003e #\u003cWordSearch::TwoDimensional::Point:0x007facf1d8d7e0 @letter=\"u\", @x=0, @y=3\u003e\n❯ plane.pto_s\nnvqgy\nuhsit\nzqloh\nmuudd\nhimyj\n\n# To print to a file(without a filename defaults to \"word_search\")\n❯ plane.print(file_name)\n\n# When printing a 3D word search there are two spaces between z slices. The top slice is z = 0.\n❯ plane = WordSearch::Plane.new(3, 3, 2)\n❯ plane.add_letters\n❯ plane.pto_s\nbxv\nlud\nagp\n\nesj\nera\nutg\n```\n\nTo create plane filled with words supplied by a word bank:\n```ruby\n❯ generator = WordSearch::Generator.new(\"words.csv\", 5, 5) # or add a z param to get a 3D word search\n❯ generator.perform\n❯ generator.word_bank\n=\u003e [\"word\", \"hello\", \"bye\"]\n❯ generator.pto_s\nghsii\neelwt\nylcon\nblarz\nyoydt\n```\n\nTo solve or benchmark your solution script:\n```ruby\n❯ solver = WordSearch::Solver.new(\n❯   \"path/to/script\", \"path/to/word/bank\", \"path/to/word/search\"\n❯ )\n❯ solver.perform\n=\u003e #\u003cBenchmark::Tms:0x007fd722cc6b58 @cstime=0.07, @cutime=0.44, @label=\"\", @real=0.5259899999946356, @stime=0.0, @total=0.51, @utime=0.0\u003e\n```\n_NOTE_: Your script should be an executable ruby script that writes the location\nof each letter to a file in the following format and returns the file path. Your\nscript should also accept command line arguments the first being the plane file\nthe second being the word list file.\n```\nh [4, 9]\ne [5, 9]\nl [6, 9]\nl [7, 9]\no [8, 9]\n---\nb [6, 8]\ny [7, 7]\ne [8, 6]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpezza93%2Fword_search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpezza93%2Fword_search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpezza93%2Fword_search/lists"}