PHP Classes

File: templateExample1.php

Recommend this page to a friend!
  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: 18 years ago
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() ;

?>