Login   Register  
PHP Classes
elePHPant
Icontem

File: templateExample1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Richard Munroe  >  Sudoku  >  templateExample1.php  >  Download  
File: templateExample1.php
Role: Example script
Content type: text/plain
Description: Example of generating Sudoku using templates.
Class: Sudoku
Generate and solve sudoku puzzles
Author: By
Last change:
Date: 2005-11-03 08:23
Size: 243 bytes
 

Contents

Class file image Download
<?php

include_once "class.Sudoku.php" ;

$p = new SudokuTemplates() ;

$theInitialState $p->generatePuzzleFromFile() ;

$i = new Sudoku() ;

$i->initializePuzzleFromArray($theInitialState) ;

$i->printSolution() ;

$p->printSolution() ;

?>