README.md

# WordSearch

Generates a word search with various input options.

## How to Use

```elixir
WordSearch.generate(word_list, size)
WordSearch.generate(word_list, size, directions)
WordSearch.generate(word_list, size, directions, difficulty)
```

### Produces:
```
[
  ["R", "A", "T", "F", "K", "Y", "K", "V", "K", "R"],
  ["Q", "N", "B", "I", "H", "M", "T", "C", "E", "G"],
  ["D", "O", "G", "W", "O", "R", "D", "H", "F", "N"],
  ["T", "T", "C", "A", "G", "D", "T", "A", "U", "H"], 
  ["I", "H", "A", "F", "O", "O", "A", "K", "G", "Z"],
  ["N", "E", "R", "O", "N", "A", "L", "P", "B", "M"],
  ["P", "R", "F", "A", "W", "R", "E", "D", "K", "G"],
  ["R", "G", "T", "E", "J", "M", "R", "Q", "P", "I"],
  ["X", "E", "E", "S", "S", "E", "C", "T", "Z", "D"],
  ["Y", "S", "D", "L", "Q", "Y", "K", "R", "J", "F"]
]
```

## Options
- word_list (example: ["car", "food", "tree"])
- size (the size of the word search. a size of 10 will create a 10x10 grid)
- directions (list of directions, possible values: ["forward", "backward", "diagonal"])
- difficulty (possible values: ["easy", "hard"] "easy" will use entire alphabet, "hard" will just use the letters in the words)


## Installation

The package can be installed by adding `word_search` to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [
    {:word_search, "~> 0.2.0"}
  ]
end
```

Documentation can be found on [HexDocs](https://hexdocs.pm/word_search/0.2.0).