PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Dave Smith  >  The Gameboard  >  index.php  >  Download  
File: index.php
Role: Application script
Content type: text/plain
Description: Game Board Design
Class: The Gameboard
Implement a board game using the takeover strategy
Author: By
Last change:
Date: 5 years ago
Size: 48,685 bytes
 

Contents

Class file image Download
<?php session_start(); if( isset($_REQUEST['a']) and $_REQUEST['a'] == 'new' ){ unset($_SESSION['gameboard']); header('location: ./'); exit; } include('gameboard.class.php'); if( empty($_SESSION['gameboard']) ){ $game = new gameboard(); }else{ $game = unserialize($_SESSION['gameboard']); } if( isset($_REQUEST['a']) ){ switch( $_REQUEST['a'] ){ case 'selgame': if( !empty($_REQUEST['game-sel']) ){ $gameSel = $_REQUEST['game-sel']; $game->activateGame( $gameSel ); } break; case 'selplayer': $game->selectPlayer(); break; case 'addplayer': if( !empty($_REQUEST['player-select']) ){ $playerid = $_REQUEST['player-select']; $playername = $_REQUEST['player-name']; $game->activatePlayer( $playerid, $playername ); } break; case 'startgame': $game->startGame(); break; case 'playerroll': $game->processRoll(); break; case 'nextplayer': $game->nextPlayer(); break; case 'claimtile': $game->claimTile(); break; case 'playerquit': $game->playerQuit(); break; case 'moveforward': $number = $_REQUEST['v']; $game->moveForward( $number ); break; case 'moveback': $number = $_REQUEST['v']; $game->moveBack( $number ); break; case 'transport': $tile = $_REQUEST['v']; $game->transport( $tile ); break; default: } $_SESSION['gameboard'] = serialize($game); header('location: ./'); exit; } $_SESSION['gameboard'] = serialize($game); ?> <!DOCTYPE html> <html> <head> <title>GameBoard</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="board.css"> </head> <body> <div id="main-board"> <table id="spaces"> <tr> <td id="s0" style="background-color: <?php echo $game->s[0];?>; border: solid thin black; text-align: center; vertical-align: baseline;"> <table id="ps0"> <tr> <td id="ps0-1" style="background-color: <?php echo $game->ps[0][1];?>; border: <?php echo $game->psb[0][1];?>;"></td> <td id="ps0-2" style="background-color: <?php echo $game->ps[0][2];?>; border: <?php echo $game->psb[0][2];?>;"></td> <td id="ps0-3" style="background-color: <?php echo $game->ps[0][3];?>; border: <?php echo $game->psb[0][3];?>;"></td> <td id="ps0-4" style="background-color: <?php echo $game->ps[0][4];?>; border: <?php echo $game->psb[0][4];?>;"></td> </tr> <tr> <td id="ps0-5" style="background-color: <?php echo $game->ps[0][5];?>; border: <?php echo $game->psb[0][5];?>;"></td> <td id="ps0-6" style="background-color: <?php echo $game->ps[0][6];?>; border: <?php echo $game->psb[0][6];?>;"></td> <td id="ps0-7" style="background-color: <?php echo $game->ps[0][7];?>; border: <?php echo $game->psb[0][7];?>;"></td> <td id="ps0-8" style="background-color: <?php echo $game->ps[0][8];?>; border: <?php echo $game->psb[0][8];?>;"></td> </tr> </table> <?php echo $game->startTileName;?> </td> <td id="s1" style="background-color: <?php echo $game->s[1];?>; border: solid thin black;"> <table id="ps1"> <tr> <td id="ps1-1" style="background-color: <?php echo $game->ps[1][1];?>; border: <?php echo $game->psb[1][1];?>;"></td> <td id="ps1-2" style="background-color: <?php echo $game->ps[1][2];?>; border: <?php echo $game->psb[1][2];?>;"></td> <td id="ps1-3" style="background-color: <?php echo $game->ps[1][3];?>; border: <?php echo $game->psb[1][3];?>;"></td> <td id="ps1-4" style="background-color: <?php echo $game->ps[1][4];?>; border: <?php echo $game->psb[1][4];?>;"></td> </tr> <tr> <td id="ps1-5" style="background-color: <?php echo $game->ps[1][5];?>; border: <?php echo $game->psb[1][5];?>;"></td> <td id="ps1-6" style="background-color: <?php echo $game->ps[1][6];?>; border: <?php echo $game->psb[1][6];?>;"></td> <td id="ps1-7" style="background-color: <?php echo $game->ps[1][7];?>; border: <?php echo $game->psb[1][7];?>;"></td> <td id="ps1-8" style="background-color: <?php echo $game->ps[1][8];?>; border: <?php echo $game->psb[1][8];?>;"></td> </tr> </table> </td> <td id="s2" style="background-color: <?php echo $game->s[2];?>; border: solid thin black;"> <table id="ps2"> <tr> <td id="ps2-1" style="background-color: <?php echo $game->ps[2][1];?>; border: <?php echo $game->psb[2][1];?>;"></td> <td id="ps2-2" style="background-color: <?php echo $game->ps[2][2];?>; border: <?php echo $game->psb[2][2];?>;"></td> <td id="ps2-3" style="background-color: <?php echo $game->ps[2][3];?>; border: <?php echo $game->psb[2][3];?>;"></td> <td id="ps2-4" style="background-color: <?php echo $game->ps[2][4];?>; border: <?php echo $game->psb[2][4];?>;"></td> </tr> <tr> <td id="ps2-5" style="background-color: <?php echo $game->ps[2][5];?>; border: <?php echo $game->psb[2][5];?>;"></td> <td id="ps2-6" style="background-color: <?php echo $game->ps[2][6];?>; border: <?php echo $game->psb[2][6];?>;"></td> <td id="ps2-7" style="background-color: <?php echo $game->ps[2][7];?>; border: <?php echo $game->psb[2][7];?>;"></td> <td id="ps2-8" style="background-color: <?php echo $game->ps[2][8];?>; border: <?php echo $game->psb[2][8];?>;"></td> </tr> </table> </td> <td id="s3" style="background-color: <?php echo $game->s[3];?>; border: solid thin black;"> <table id="ps3"> <tr> <td id="ps3-1" style="background-color: <?php echo $game->ps[3][1];?>; border: <?php echo $game->psb[3][1];?>;"></td> <td id="ps3-2" style="background-color: <?php echo $game->ps[3][2];?>; border: <?php echo $game->psb[3][2];?>;"></td> <td id="ps3-3" style="background-color: <?php echo $game->ps[3][3];?>; border: <?php echo $game->psb[3][3];?>;"></td> <td id="ps3-4" style="background-color: <?php echo $game->ps[3][4];?>; border: <?php echo $game->psb[3][4];?>;"></td> </tr> <tr> <td id="ps3-5" style="background-color: <?php echo $game->ps[3][5];?>; border: <?php echo $game->psb[3][5];?>;"></td> <td id="ps3-6" style="background-color: <?php echo $game->ps[3][6];?>; border: <?php echo $game->psb[3][6];?>;"></td> <td id="ps3-7" style="background-color: <?php echo $game->ps[3][7];?>; border: <?php echo $game->psb[3][7];?>;"></td> <td id="ps3-8" style="background-color: <?php echo $game->ps[3][8];?>; border: <?php echo $game->psb[3][8];?>;"></td> </tr> </table> </td> <td id="s4" style="background-color: <?php echo $game->s[4];?>; border: solid thin black;"> <table id="ps4"> <tr> <td id="ps4-1" style="background-color: <?php echo $game->ps[4][1];?>; border: <?php echo $game->psb[4][1];?>;"></td> <td id="ps4-2" style="background-color: <?php echo $game->ps[4][2];?>; border: <?php echo $game->psb[4][2];?>;"></td> <td id="ps4-3" style="background-color: <?php echo $game->ps[4][3];?>; border: <?php echo $game->psb[4][3];?>;"></td> <td id="ps4-4" style="background-color: <?php echo $game->ps[4][4];?>; border: <?php echo $game->psb[4][4];?>;"></td> </tr> <tr> <td id="ps4-5" style="background-color: <?php echo $game->ps[4][5];?>; border: <?php echo $game->psb[4][5];?>;"></td> <td id="ps4-6" style="background-color: <?php echo $game->ps[4][6];?>; border: <?php echo $game->psb[4][6];?>;"></td> <td id="ps4-7" style="background-color: <?php echo $game->ps[4][7];?>; border: <?php echo $game->psb[4][7];?>;"></td> <td id="ps4-8" style="background-color: <?php echo $game->ps[4][8];?>; border: <?php echo $game->psb[4][8];?>;"></td> </tr> </table> </td> <td id="s5" style="background-color: <?php echo $game->s[5];?>; border: solid thin black;"> <table id="ps5"> <tr> <td id="ps5-1" style="background-color: <?php echo $game->ps[5][1];?>; border: <?php echo $game->psb[5][1];?>;"></td> <td id="ps5-2" style="background-color: <?php echo $game->ps[5][2];?>; border: <?php echo $game->psb[5][2];?>;"></td> <td id="ps5-3" style="background-color: <?php echo $game->ps[5][3];?>; border: <?php echo $game->psb[5][3];?>;"></td> <td id="ps5-4" style="background-color: <?php echo $game->ps[5][4];?>; border: <?php echo $game->psb[5][4];?>;"></td> </tr> <tr> <td id="ps5-5" style="background-color: <?php echo $game->ps[5][5];?>; border: <?php echo $game->psb[5][5];?>;"></td> <td id="ps5-6" style="background-color: <?php echo $game->ps[5][6];?>; border: <?php echo $game->psb[5][6];?>;"></td> <td id="ps5-7" style="background-color: <?php echo $game->ps[5][7];?>; border: <?php echo $game->psb[5][7];?>;"></td> <td id="ps5-8" style="background-color: <?php echo $game->ps[5][8];?>; border: <?php echo $game->psb[5][8];?>;"></td> </tr> </table> </td> <td id="s6" style="background-color: <?php echo $game->s[6];?>; border: solid thin black;"> <table id="ps6"> <tr> <td id="ps6-1" style="background-color: <?php echo $game->ps[6][1];?>; border: <?php echo $game->psb[6][1];?>;"></td> <td id="ps6-2" style="background-color: <?php echo $game->ps[6][2];?>; border: <?php echo $game->psb[6][2];?>;"></td> <td id="ps6-3" style="background-color: <?php echo $game->ps[6][3];?>; border: <?php echo $game->psb[6][3];?>;"></td> <td id="ps6-4" style="background-color: <?php echo $game->ps[6][4];?>; border: <?php echo $game->psb[6][4];?>;"></td> </tr> <tr> <td id="ps6-5" style="background-color: <?php echo $game->ps[6][5];?>; border: <?php echo $game->psb[6][5];?>;"></td> <td id="ps6-6" style="background-color: <?php echo $game->ps[6][6];?>; border: <?php echo $game->psb[6][6];?>;"></td> <td id="ps6-7" style="background-color: <?php echo $game->ps[6][7];?>; border: <?php echo $game->psb[6][7];?>;"></td> <td id="ps6-8" style="background-color: <?php echo $game->ps[6][8];?>; border: <?php echo $game->psb[6][8];?>;"></td> </tr> </table> </td> <td id="s7" style="background-color: <?php echo $game->s[7];?>; border: solid thin black; text-align: center; vertical-align: baseline;"> <table id="ps7"> <tr> <td id="ps7-1" style="background-color: <?php echo $game->ps[7][1];?>; border: <?php echo $game->psb[7][1];?>;"></td> <td id="ps7-2" style="background-color: <?php echo $game->ps[7][2];?>; border: <?php echo $game->psb[7][2];?>;"></td> <td id="ps7-3" style="background-color: <?php echo $game->ps[7][3];?>; border: <?php echo $game->psb[7][3];?>;"></td> <td id="ps7-4" style="background-color: <?php echo $game->ps[7][4];?>; border: <?php echo $game->psb[7][4];?>;"></td> </tr> <tr> <td id="ps7-5" style="background-color: <?php echo $game->ps[7][5];?>; border: <?php echo $game->psb[7][5];?>;"></td> <td id="ps7-6" style="background-color: <?php echo $game->ps[7][6];?>; border: <?php echo $game->psb[7][6];?>;"></td> <td id="ps7-7" style="background-color: <?php echo $game->ps[7][7];?>; border: <?php echo $game->psb[7][7];?>;"></td> <td id="ps7-8" style="background-color: <?php echo $game->ps[7][8];?>; border: <?php echo $game->psb[7][8];?>;"></td> </tr> </table> <?php echo $game->freeTileName;?> </td> </tr> <tr> <td id="s27" style="background-color: <?php echo $game->s[27];?>; border: solid thin black;"> <table id="ps27"> <tr> <td id="ps27-1" style="background-color: <?php echo $game->ps[27][1];?>; border: <?php echo $game->psb[27][1];?>;"></td> <td id="ps27-2" style="background-color: <?php echo $game->ps[27][2];?>; border: <?php echo $game->psb[27][2];?>;"></td> <td id="ps27-3" style="background-color: <?php echo $game->ps[27][3];?>; border: <?php echo $game->psb[27][3];?>;"></td> <td id="ps27-4" style="background-color: <?php echo $game->ps[27][4];?>; border: <?php echo $game->psb[27][4];?>;"></td> </tr> <tr> <td id="ps27-5" style="background-color: <?php echo $game->ps[27][5];?>; border: <?php echo $game->psb[27][5];?>;"></td> <td id="ps27-6" style="background-color: <?php echo $game->ps[27][6];?>; border: <?php echo $game->psb[27][6];?>;"></td> <td id="ps27-7" style="background-color: <?php echo $game->ps[27][7];?>; border: <?php echo $game->psb[27][7];?>;"></td> <td id="ps27-8" style="background-color: <?php echo $game->ps[27][8];?>; border: <?php echo $game->psb[27][8];?>;"></td> </tr> </table> </td> <td id="main-center" colspan="6" rowspan="6" style="vertical-align: top;"> <table id="board-action"> <tr> <td id="action-head"> <h2 style="margin-bottom: 0"><?php echo $game->boardName;?></h2> <?php if( !empty($game->currentGame) ){ ?> <h3 style="margin: 0"><?php echo $game->game[$game->currentGame];?></h3> <form method="post"> <div class="form-submit"> <input type="hidden" name="a" value="new"> <input type="submit" name="submit" value="End Game"> </div> </form> <?php } ?> </td> </tr> <tr> <td id="action-middle"><?php include($game->view);?></td> </tr> <tr> <td id="action-foot" style="height: 25%; text-align: center; padding: 10px;"><?php echo $game->branding;?></td> </tr> </table> </td> <td id="s8" style="background-color: <?php echo $game->s[8];?>; border: solid thin black;"> <table id="ps8"> <tr> <td id="ps8-1" style="background-color: <?php echo $game->ps[8][1];?>; border: <?php echo $game->psb[8][1];?>;"></td> <td id="ps8-2" style="background-color: <?php echo $game->ps[8][2];?>; border: <?php echo $game->psb[8][2];?>;"></td> <td id="ps8-3" style="background-color: <?php echo $game->ps[8][3];?>; border: <?php echo $game->psb[8][3];?>;"></td> <td id="ps8-4" style="background-color: <?php echo $game->ps[8][4];?>; border: <?php echo $game->psb[8][4];?>;"></td> </tr> <tr> <td id="ps8-5" style="background-color: <?php echo $game->ps[8][5];?>; border: <?php echo $game->psb[8][5];?>;"></td> <td id="ps8-6" style="background-color: <?php echo $game->ps[8][6];?>; border: <?php echo $game->psb[8][6];?>;"></td> <td id="ps8-7" style="background-color: <?php echo $game->ps[8][7];?>; border: <?php echo $game->psb[8][7];?>;"></td> <td id="ps8-8" style="background-color: <?php echo $game->ps[8][8];?>; border: <?php echo $game->psb[8][8];?>;"></td> </tr> </table> </td> </tr> <tr> <td id="s26" style="background-color: <?php echo $game->s[26];?>; border: solid thin black;"> <table id="ps26"> <tr> <td id="ps26-1" style="background-color: <?php echo $game->ps[26][1];?>; border: <?php echo $game->psb[26][1];?>;"></td> <td id="ps26-2" style="background-color: <?php echo $game->ps[26][2];?>; border: <?php echo $game->psb[26][2];?>;"></td> <td id="ps26-3" style="background-color: <?php echo $game->ps[26][3];?>; border: <?php echo $game->psb[26][3];?>;"></td> <td id="ps26-4" style="background-color: <?php echo $game->ps[26][4];?>; border: <?php echo $game->psb[26][4];?>;"></td> </tr> <tr> <td id="ps26-5" style="background-color: <?php echo $game->ps[26][5];?>; border: <?php echo $game->psb[26][5];?>;"></td> <td id="ps26-6" style="background-color: <?php echo $game->ps[26][6];?>; border: <?php echo $game->psb[26][6];?>;"></td> <td id="ps26-7" style="background-color: <?php echo $game->ps[26][7];?>; border: <?php echo $game->psb[26][7];?>;"></td> <td id="ps26-8" style="background-color: <?php echo $game->ps[26][8];?>; border: <?php echo $game->psb[26][8];?>;"></td> </tr> </table> </td> <td id="s9" style="background-color: <?php echo $game->s[9];?>; border: solid thin black;"> <table id="ps9"> <tr> <td id="ps9-1" style="background-color: <?php echo $game->ps[9][1];?>; border: <?php echo $game->psb[9][1];?>;"></td> <td id="ps9-2" style="background-color: <?php echo $game->ps[9][2];?>; border: <?php echo $game->psb[9][2];?>;"></td> <td id="ps9-3" style="background-color: <?php echo $game->ps[9][3];?>; border: <?php echo $game->psb[9][3];?>;"></td> <td id="ps9-4" style="background-color: <?php echo $game->ps[9][4];?>; border: <?php echo $game->psb[9][4];?>;"></td> </tr> <tr> <td id="ps9-5" style="background-color: <?php echo $game->ps[9][5];?>; border: <?php echo $game->psb[9][5];?>;"></td> <td id="ps9-6" style="background-color: <?php echo $game->ps[9][6];?>; border: <?php echo $game->psb[9][6];?>;"></td> <td id="ps9-7" style="background-color: <?php echo $game->ps[9][7];?>; border: <?php echo $game->psb[9][7];?>;"></td> <td id="ps9-8" style="background-color: <?php echo $game->ps[9][8];?>; border: <?php echo $game->psb[9][8];?>;"></td> </tr> </table> </td> </tr> <tr> <td id="s25" style="background-color: <?php echo $game->s[25];?>; border: solid thin black;"> <table id="ps25"> <tr> <td id="ps25-1" style="background-color: <?php echo $game->ps[25][1];?>; border: <?php echo $game->psb[25][1];?>;"></td> <td id="ps25-2" style="background-color: <?php echo $game->ps[25][2];?>; border: <?php echo $game->psb[25][2];?>;"></td> <td id="ps25-3" style="background-color: <?php echo $game->ps[25][3];?>; border: <?php echo $game->psb[25][3];?>;"></td> <td id="ps25-4" style="background-color: <?php echo $game->ps[25][4];?>; border: <?php echo $game->psb[25][4];?>;"></td> </tr> <tr> <td id="ps25-5" style="background-color: <?php echo $game->ps[25][5];?>; border: <?php echo $game->psb[25][5];?>;"></td> <td id="ps25-6" style="background-color: <?php echo $game->ps[25][6];?>; border: <?php echo $game->psb[25][6];?>;"></td> <td id="ps25-7" style="background-color: <?php echo $game->ps[25][7];?>; border: <?php echo $game->psb[25][7];?>;"></td> <td id="ps25-8" style="background-color: <?php echo $game->ps[25][8];?>; border: <?php echo $game->psb[25][8];?>;"></td> </tr> </table> </td> <td id="s10" style="background-color: <?php echo $game->s[10];?>; border: solid thin black;"> <table id="ps10"> <tr> <td id="ps10-1" style="background-color: <?php echo $game->ps[10][1];?>; border: <?php echo $game->psb[10][1];?>;"></td> <td id="ps10-2" style="background-color: <?php echo $game->ps[10][2];?>; border: <?php echo $game->psb[10][2];?>;"></td> <td id="ps10-3" style="background-color: <?php echo $game->ps[10][3];?>; border: <?php echo $game->psb[10][3];?>;"></td> <td id="ps10-4" style="background-color: <?php echo $game->ps[10][4];?>; border: <?php echo $game->psb[10][4];?>;"></td> </tr> <tr> <td id="ps10-5" style="background-color: <?php echo $game->ps[10][5];?>; border: <?php echo $game->psb[10][5];?>;"></td> <td id="ps10-6" style="background-color: <?php echo $game->ps[10][6];?>; border: <?php echo $game->psb[10][6];?>;"></td> <td id="ps10-7" style="background-color: <?php echo $game->ps[10][7];?>; border: <?php echo $game->psb[10][7];?>;"></td> <td id="ps10-8" style="background-color: <?php echo $game->ps[10][8];?>; border: <?php echo $game->psb[10][8];?>;"></td> </tr> </table> </td> </tr> <tr> <td id="s24" style="background-color: <?php echo $game->s[24];?>; border: solid thin black;"> <table id="ps24"> <tr> <td id="ps24-1" style="background-color: <?php echo $game->ps[24][1];?>; border: <?php echo $game->psb[24][1];?>;"></td> <td id="ps24-2" style="background-color: <?php echo $game->ps[24][2];?>; border: <?php echo $game->psb[24][2];?>;"></td> <td id="ps24-3" style="background-color: <?php echo $game->ps[24][3];?>; border: <?php echo $game->psb[24][3];?>;"></td> <td id="ps24-4" style="background-color: <?php echo $game->ps[24][4];?>; border: <?php echo $game->psb[24][4];?>;"></td> </tr> <tr> <td id="ps24-5" style="background-color: <?php echo $game->ps[24][5];?>; border: <?php echo $game->psb[24][5];?>;"></td> <td id="ps24-6" style="background-color: <?php echo $game->ps[24][6];?>; border: <?php echo $game->psb[24][6];?>;"></td> <td id="ps24-7" style="background-color: <?php echo $game->ps[24][7];?>; border: <?php echo $game->psb[24][7];?>;"></td> <td id="ps24-8" style="background-color: <?php echo $game->ps[24][8];?>; border: <?php echo $game->psb[24][8];?>;"></td> </tr> </table> </td> <td id="s11" style="background-color: <?php echo $game->s[11];?>; border: solid thin black;"> <table id="ps11"> <tr> <td id="ps11-1" style="background-color: <?php echo $game->ps[11][1];?>; border: <?php echo $game->psb[11][1];?>;"></td> <td id="ps11-2" style="background-color: <?php echo $game->ps[11][2];?>; border: <?php echo $game->psb[11][2];?>;"></td> <td id="ps11-3" style="background-color: <?php echo $game->ps[11][3];?>; border: <?php echo $game->psb[11][3];?>;"></td> <td id="ps11-4" style="background-color: <?php echo $game->ps[11][4];?>; border: <?php echo $game->psb[11][4];?>;"></td> </tr> <tr> <td id="ps11-5" style="background-color: <?php echo $game->ps[11][5];?>; border: <?php echo $game->psb[11][5];?>;"></td> <td id="ps11-6" style="background-color: <?php echo $game->ps[11][6];?>; border: <?php echo $game->psb[11][6];?>;"></td> <td id="ps11-7" style="background-color: <?php echo $game->ps[11][7];?>; border: <?php echo $game->psb[11][7];?>;"></td> <td id="ps11-8" style="background-color: <?php echo $game->ps[11][8];?>; border: <?php echo $game->psb[11][8];?>;"></td> </tr> </table> </td> </tr> <tr> <td id="s23" style="background-color: <?php echo $game->s[23];?>; border: solid thin black;"> <table id="ps23"> <tr> <td id="ps23-1" style="background-color: <?php echo $game->ps[23][1];?>; border: <?php echo $game->psb[23][1];?>;"></td> <td id="ps23-2" style="background-color: <?php echo $game->ps[23][2];?>; border: <?php echo $game->psb[23][2];?>;"></td> <td id="ps23-3" style="background-color: <?php echo $game->ps[23][3];?>; border: <?php echo $game->psb[23][3];?>;"></td> <td id="ps23-4" style="background-color: <?php echo $game->ps[23][4];?>; border: <?php echo $game->psb[23][4];?>;"></td> </tr> <tr> <td id="ps23-5" style="background-color: <?php echo $game->ps[23][5];?>; border: <?php echo $game->psb[23][5];?>;"></td> <td id="ps23-6" style="background-color: <?php echo $game->ps[23][6];?>; border: <?php echo $game->psb[23][6];?>;"></td> <td id="ps23-7" style="background-color: <?php echo $game->ps[23][7];?>; border: <?php echo $game->psb[23][7];?>;"></td> <td id="ps23-8" style="background-color: <?php echo $game->ps[23][8];?>; border: <?php echo $game->psb[23][8];?>;"></td> </tr> </table> </td> <td id="s12" style="background-color: <?php echo $game->s[12];?>; border: solid thin black;"> <table id="ps12"> <tr> <td id="ps12-1" style="background-color: <?php echo $game->ps[12][1];?>; border: <?php echo $game->psb[12][1];?>;"></td> <td id="ps12-2" style="background-color: <?php echo $game->ps[12][2];?>; border: <?php echo $game->psb[12][2];?>;"></td> <td id="ps12-3" style="background-color: <?php echo $game->ps[12][3];?>; border: <?php echo $game->psb[12][3];?>;"></td> <td id="ps12-4" style="background-color: <?php echo $game->ps[12][4];?>; border: <?php echo $game->psb[12][4];?>;"></td> </tr> <tr> <td id="ps12-5" style="background-color: <?php echo $game->ps[12][5];?>; border: <?php echo $game->psb[12][5];?>;"></td> <td id="ps12-6" style="background-color: <?php echo $game->ps[12][6];?>; border: <?php echo $game->psb[12][6];?>;"></td> <td id="ps12-7" style="background-color: <?php echo $game->ps[12][7];?>; border: <?php echo $game->psb[12][7];?>;"></td> <td id="ps12-8" style="background-color: <?php echo $game->ps[12][8];?>; border: <?php echo $game->psb[12][8];?>;"></td> </tr> </table> </td> </tr> <tr> <td id="s22" style="background-color: <?php echo $game->s[22];?>; border: solid thin black;"> <table id="ps22"> <tr> <td id="ps22-1" style="background-color: <?php echo $game->ps[22][1];?>; border: <?php echo $game->psb[22][1];?>;"></td> <td id="ps22-2" style="background-color: <?php echo $game->ps[22][2];?>; border: <?php echo $game->psb[22][2];?>;"></td> <td id="ps22-3" style="background-color: <?php echo $game->ps[22][3];?>; border: <?php echo $game->psb[22][3];?>;"></td> <td id="ps22-4" style="background-color: <?php echo $game->ps[22][4];?>; border: <?php echo $game->psb[22][4];?>;"></td> </tr> <tr> <td id="ps22-5" style="background-color: <?php echo $game->ps[22][5];?>; border: <?php echo $game->psb[22][5];?>;"></td> <td id="ps22-6" style="background-color: <?php echo $game->ps[22][6];?>; border: <?php echo $game->psb[22][6];?>;"></td> <td id="ps22-7" style="background-color: <?php echo $game->ps[22][7];?>; border: <?php echo $game->psb[22][7];?>;"></td> <td id="ps22-8" style="background-color: <?php echo $game->ps[22][8];?>; border: <?php echo $game->psb[22][8];?>;"></td> </tr> </table> </td> <td id="s13" style="background-color: <?php echo $game->s[13];?>; border: solid thin black;"> <table id="ps13"> <tr> <td id="ps13-1" style="background-color: <?php echo $game->ps[13][1];?>; border: <?php echo $game->psb[13][1];?>;"></td> <td id="ps13-2" style="background-color: <?php echo $game->ps[13][2];?>; border: <?php echo $game->psb[13][2];?>;"></td> <td id="ps13-3" style="background-color: <?php echo $game->ps[13][3];?>; border: <?php echo $game->psb[13][3];?>;"></td> <td id="ps13-4" style="background-color: <?php echo $game->ps[13][4];?>; border: <?php echo $game->psb[13][4];?>;"></td> </tr> <tr> <td id="ps13-5" style="background-color: <?php echo $game->ps[13][5];?>; border: <?php echo $game->psb[13][5];?>;"></td> <td id="ps13-6" style="background-color: <?php echo $game->ps[13][6];?>; border: <?php echo $game->psb[13][6];?>;"></td> <td id="ps13-7" style="background-color: <?php echo $game->ps[13][7];?>; border: <?php echo $game->psb[13][7];?>;"></td> <td id="ps13-8" style="background-color: <?php echo $game->ps[13][8];?>; border: <?php echo $game->psb[13][8];?>;"></td> </tr> </table> </td> </tr> <tr> <td id="s21" style="background-color: <?php echo $game->s[21];?>; border: solid thin black; text-align: center; vertical-align: baseline;"> <table id="ps21"> <tr> <td id="ps21-1" style="background-color: <?php echo $game->ps[21][1];?>; border: <?php echo $game->psb[21][1];?>;"></td> <td id="ps21-2" style="background-color: <?php echo $game->ps[21][2];?>; border: <?php echo $game->psb[21][2];?>;"></td> <td id="ps21-3" style="background-color: <?php echo $game->ps[21][3];?>; border: <?php echo $game->psb[21][3];?>;"></td> <td id="ps21-4" style="background-color: <?php echo $game->ps[21][4];?>; border: <?php echo $game->psb[21][4];?>;"></td> </tr> <tr> <td id="ps21-5" style="background-color: <?php echo $game->ps[21][5];?>; border: <?php echo $game->psb[21][5];?>;"></td> <td id="ps21-6" style="background-color: <?php echo $game->ps[21][6];?>; border: <?php echo $game->psb[21][6];?>;"></td> <td id="ps21-7" style="background-color: <?php echo $game->ps[21][7];?>; border: <?php echo $game->psb[21][7];?>;"></td> <td id="ps21-8" style="background-color: <?php echo $game->ps[21][8];?>; border: <?php echo $game->psb[21][8];?>;"></td> </tr> </table> <?php echo $game->forceTile2Name;?> </td> <td id="s20" style="background-color: <?php echo $game->s[20];?>; border: solid thin black;"> <table id="ps20"> <tr> <td id="ps20-1" style="background-color: <?php echo $game->ps[20][1];?>; border: <?php echo $game->psb[20][1];?>;"></td> <td id="ps20-2" style="background-color: <?php echo $game->ps[20][2];?>; border: <?php echo $game->psb[20][2];?>;"></td> <td id="ps20-3" style="background-color: <?php echo $game->ps[20][3];?>; border: <?php echo $game->psb[20][3];?>;"></td> <td id="ps20-4" style="background-color: <?php echo $game->ps[20][4];?>; border: <?php echo $game->psb[20][4];?>;"></td> </tr> <tr> <td id="ps20-5" style="background-color: <?php echo $game->ps[20][5];?>; border: <?php echo $game->psb[20][5];?>;"></td> <td id="ps20-6" style="background-color: <?php echo $game->ps[20][6];?>; border: <?php echo $game->psb[20][6];?>;"></td> <td id="ps20-7" style="background-color: <?php echo $game->ps[20][7];?>; border: <?php echo $game->psb[20][7];?>;"></td> <td id="ps20-8" style="background-color: <?php echo $game->ps[20][8];?>; border: <?php echo $game->psb[20][8];?>;"></td> </tr> </table> </td> <td id="s19" style="background-color: <?php echo $game->s[19];?>; border: solid thin black;"> <table id="ps19"> <tr> <td id="ps19-1" style="background-color: <?php echo $game->ps[19][1];?>; border: <?php echo $game->psb[19][1];?>;"></td> <td id="ps19-2" style="background-color: <?php echo $game->ps[19][2];?>; border: <?php echo $game->psb[19][2];?>;"></td> <td id="ps19-3" style="background-color: <?php echo $game->ps[19][3];?>; border: <?php echo $game->psb[19][3];?>;"></td> <td id="ps19-4" style="background-color: <?php echo $game->ps[19][4];?>; border: <?php echo $game->psb[19][4];?>;"></td> </tr> <tr> <td id="ps19-5" style="background-color: <?php echo $game->ps[19][5];?>; border: <?php echo $game->psb[19][5];?>;"></td> <td id="ps19-6" style="background-color: <?php echo $game->ps[19][6];?>; border: <?php echo $game->psb[19][6];?>;"></td> <td id="ps19-7" style="background-color: <?php echo $game->ps[19][7];?>; border: <?php echo $game->psb[19][7];?>;"></td> <td id="ps19-8" style="background-color: <?php echo $game->ps[19][8];?>; border: <?php echo $game->psb[19][8];?>;"></td> </tr> </table> </td> <td id="s18" style="background-color: <?php echo $game->s[18];?>; border: solid thin black;"> <table id="ps18"> <tr> <td id="ps18-1" style="background-color: <?php echo $game->ps[18][1];?>; border: <?php echo $game->psb[18][1];?>;"></td> <td id="ps18-2" style="background-color: <?php echo $game->ps[18][2];?>; border: <?php echo $game->psb[18][2];?>;"></td> <td id="ps18-3" style="background-color: <?php echo $game->ps[18][3];?>; border: <?php echo $game->psb[18][3];?>;"></td> <td id="ps18-4" style="background-color: <?php echo $game->ps[18][4];?>; border: <?php echo $game->psb[18][4];?>;"></td> </tr> <tr> <td id="ps18-5" style="background-color: <?php echo $game->ps[18][5];?>; border: <?php echo $game->psb[18][5];?>;"></td> <td id="ps18-6" style="background-color: <?php echo $game->ps[18][6];?>; border: <?php echo $game->psb[18][6];?>;"></td> <td id="ps18-7" style="background-color: <?php echo $game->ps[18][7];?>; border: <?php echo $game->psb[18][7];?>;"></td> <td id="ps18-8" style="background-color: <?php echo $game->ps[18][8];?>; border: <?php echo $game->psb[18][8];?>;"></td> </tr> </table> </td> <td id="s17" style="background-color: <?php echo $game->s[17];?>; border: solid thin black;"> <table id="ps17"> <tr> <td id="ps17-1" style="background-color: <?php echo $game->ps[17][1];?>; border: <?php echo $game->psb[17][1];?>;"></td> <td id="ps17-2" style="background-color: <?php echo $game->ps[17][2];?>; border: <?php echo $game->psb[17][2];?>;"></td> <td id="ps17-3" style="background-color: <?php echo $game->ps[17][3];?>; border: <?php echo $game->psb[17][3];?>;"></td> <td id="ps17-4" style="background-color: <?php echo $game->ps[17][4];?>; border: <?php echo $game->psb[17][4];?>;"></td> </tr> <tr> <td id="ps17-5" style="background-color: <?php echo $game->ps[17][5];?>; border: <?php echo $game->psb[17][5];?>;"></td> <td id="ps17-6" style="background-color: <?php echo $game->ps[17][6];?>; border: <?php echo $game->psb[17][6];?>;"></td> <td id="ps17-7" style="background-color: <?php echo $game->ps[17][7];?>; border: <?php echo $game->psb[17][7];?>;"></td> <td id="ps17-8" style="background-color: <?php echo $game->ps[17][8];?>; border: <?php echo $game->psb[17][8];?>;"></td> </tr> </table> </td> <td id="s16" style="background-color: <?php echo $game->s[16];?>; border: solid thin black;"> <table id="ps16"> <tr> <td id="ps16-1" style="background-color: <?php echo $game->ps[16][1];?>; border: <?php echo $game->psb[16][1];?>;"></td> <td id="ps16-2" style="background-color: <?php echo $game->ps[16][2];?>; border: <?php echo $game->psb[16][2];?>;"></td> <td id="ps16-3" style="background-color: <?php echo $game->ps[16][3];?>; border: <?php echo $game->psb[16][3];?>;"></td> <td id="ps16-4" style="background-color: <?php echo $game->ps[16][4];?>; border: <?php echo $game->psb[16][4];?>;"></td> </tr> <tr> <td id="ps16-5" style="background-color: <?php echo $game->ps[16][5];?>; border: <?php echo $game->psb[16][5];?>;"></td> <td id="ps16-6" style="background-color: <?php echo $game->ps[16][6];?>; border: <?php echo $game->psb[16][6];?>;"></td> <td id="ps16-7" style="background-color: <?php echo $game->ps[16][7];?>; border: <?php echo $game->psb[16][7];?>;"></td> <td id="ps16-8" style="background-color: <?php echo $game->ps[16][8];?>; border: <?php echo $game->psb[16][8];?>;"></td> </tr> </table> </td> <td id="s15" style="background-color: <?php echo $game->s[15];?>; border: solid thin black;"> <table id="ps15"> <tr> <td id="ps15-1" style="background-color: <?php echo $game->ps[15][1];?>; border: <?php echo $game->psb[15][1];?>;"></td> <td id="ps15-2" style="background-color: <?php echo $game->ps[15][2];?>; border: <?php echo $game->psb[15][2];?>;"></td> <td id="ps15-3" style="background-color: <?php echo $game->ps[15][3];?>; border: <?php echo $game->psb[15][3];?>;"></td> <td id="ps15-4" style="background-color: <?php echo $game->ps[15][4];?>; border: <?php echo $game->psb[15][4];?>;"></td> </tr> <tr> <td id="ps15-5" style="background-color: <?php echo $game->ps[15][5];?>; border: <?php echo $game->psb[15][5];?>;"></td> <td id="ps15-6" style="background-color: <?php echo $game->ps[15][6];?>; border: <?php echo $game->psb[15][6];?>;"></td> <td id="ps15-7" style="background-color: <?php echo $game->ps[15][7];?>; border: <?php echo $game->psb[15][7];?>;"></td> <td id="ps15-8" style="background-color: <?php echo $game->ps[15][8];?>; border: <?php echo $game->psb[15][8];?>;"></td> </tr> </table> </td> <td id="s14" style="background-color: <?php echo $game->s[14];?>; border: solid thin black; text-align: center; vertical-align: baseline;"> <table id="ps14"> <tr> <td id="ps14-1" style="background-color: <?php echo $game->ps[14][1];?>; border: <?php echo $game->psb[14][1];?>;"></td> <td id="ps14-2" style="background-color: <?php echo $game->ps[14][2];?>; border: <?php echo $game->psb[14][2];?>;"></td> <td id="ps14-3" style="background-color: <?php echo $game->ps[14][3];?>; border: <?php echo $game->psb[14][3];?>;"></td> <td id="ps14-4" style="background-color: <?php echo $game->ps[14][4];?>; border: <?php echo $game->psb[14][4];?>;"></td> </tr> <tr> <td id="ps14-5" style="background-color: <?php echo $game->ps[14][5];?>; border: <?php echo $game->psb[14][5];?>;"></td> <td id="ps14-6" style="background-color: <?php echo $game->ps[14][6];?>; border: <?php echo $game->psb[14][6];?>;"></td> <td id="ps14-7" style="background-color: <?php echo $game->ps[14][7];?>; border: <?php echo $game->psb[14][7];?>;"></td> <td id="ps14-8" style="background-color: <?php echo $game->ps[14][8];?>; border: <?php echo $game->psb[14][8];?>;"></td> </tr> </table> <?php echo $game->forceTile1Name;?> </td> </tr> </table> </div> </body> </html>