PHP Classes

File: text/testing.php

Recommend this page to a friend!
  Classes of Stanley Aloh   Tic Tac Toe Multiplayer   text/testing.php   Download  
File: text/testing.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Tic Tac Toe Multiplayer
Manage the interactions ofTic-Tac-Toe game players
Author: By
Last change:
Date: 9 days ago
Size: 643 bytes
 

Contents

Class file image Download
<?php
    $message
= [
       
'players' => [
           
'x' => [
               
'id' => '',
               
'name'=> '',
            ],

           
'o' => [
               
'id' => '',
               
'name' => '',
            ]
        ],

       
'board' => [
           
'x' => 0,
           
'o' => 0,
           
'state' => 0
       
],

       
'viewers' => [],

       
'can_exit' => 0,

       
'can_sit' => [
           
'x' => 0,
           
'y' => 0
       
],

       
'can_play' => 0,

       
'ready' => [
           
'x' => 0,
           
'o' => 0
       
],

       
'log' => ''
   
];

   
var_dump(json_encode($message));