Word search generator
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Feb 23, 2015
README.md Upadate README Sep 1, 2018
class.grid.php first commit Feb 23, 2015
class.word.php first commit Feb 23, 2015
index.php first commit Feb 23, 2015
words.db first commit Feb 23, 2015

README.md

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 :

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 :

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