https://github.com/tazeg/wordsearch
Word search generator
https://github.com/tazeg/wordsearch
php puzzle word
Last synced: about 1 year ago
JSON representation
Word search generator
- Host: GitHub
- URL: https://github.com/tazeg/wordsearch
- Owner: Tazeg
- License: gpl-2.0
- Created: 2015-02-23T19:24:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T18:42:05.000Z (about 6 years ago)
- Last Synced: 2025-03-29T23:05:06.930Z (over 1 year ago)
- Topics: php, puzzle, word
- Language: PHP
- Size: 480 KB
- Stars: 14
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Word Search
A "word search" puzzle generator in PHP.
### Screenshot

### Required
PHP
### Installation
Extract files on your web server or your computer.
### Usage
In your browser, load the `index.php` page.
To generate a grid in command line, type `php index.php` :
```bash
require_once 'class.grid.php';
require_once 'class.word.php';
$grid=new Grid(5); // grid size, from 3 to 20
$grid->gen(); // generate the puzzle
echo $grid->render(Grid::RENDER_TEXT); // display it. Use $grid->render() for HTML output
echo "Words to find (".$grid->getNbWords().") :\n";
echo $grid->getWordsList("\n"); // argument is word separator
```
For example, the result in command line is :
```bash
I R E A C
I D O X R
T V E X A
S K I E N
Z W L V S
Words to find (6) :
CRANS
IDEE
OEIL
REAC
SKIE
VEXA
```