Jose Molina | Code PHP Task for Resume-Library

Initital Pile Tiles

Players

Player 1

Player 2

LOG

Something went wrong, please reload the page! n
array(80) {
  [0]=>
  string(18) "Created Tiles Pile"
  [1]=>
  string(21) "Playes Tiles Selected"
  [2]=>
  string(38) "The first Player to move is: PlayerTwo"
  [3]=>
  string(24) "The first tile is: <5:5>"
  [4]=>
  string(33) "Next Player to move is: PlayerOne"
  [5]=>
  string(67) "PlayerOne plays the tile <4:5> by adding it to the left of the pile"
  [6]=>
  string(32) "The current board is: <4:5><5:5>"
  [7]=>
  string(33) "Next Player to move is: PlayerTwo"
  [8]=>
  string(67) "PlayerTwo plays the tile <2:4> by adding it to the left of the pile"
  [9]=>
  string(37) "The current board is: <2:4><4:5><5:5>"
  [10]=>
  string(33) "Next Player to move is: PlayerOne"
  [11]=>
  string(68) "PlayerOne plays the tile <1:5> by adding it to the right of the pile"
  [12]=>
  string(42) "The current board is: <2:4><4:5><5:5><5:1>"
  [13]=>
  string(33) "Next Player to move is: PlayerTwo"
  [14]=>
  string(67) "PlayerTwo plays the tile <1:2> by adding it to the left of the pile"
  [15]=>
  string(47) "The current board is: <1:2><2:4><4:5><5:5><5:1>"
  [16]=>
  string(33) "Next Player to move is: PlayerOne"
  [17]=>
  string(67) "PlayerOne plays the tile <1:1> by adding it to the left of the pile"
  [18]=>
  string(52) "The current board is: <1:1><1:2><2:4><4:5><5:5><5:1>"
  [19]=>
  string(33) "Next Player to move is: PlayerTwo"
  [20]=>
  string(30) "PlayerTwo draws the tile <3:6>"
  [21]=>
  string(33) "Next Player to move is: PlayerOne"
  [22]=>
  string(67) "PlayerOne plays the tile <0:1> by adding it to the left of the pile"
  [23]=>
  string(57) "The current board is: <0:1><1:1><1:2><2:4><4:5><5:5><5:1>"
  [24]=>
  string(33) "Next Player to move is: PlayerTwo"
  [25]=>
  string(67) "PlayerTwo plays the tile <0:6> by adding it to the left of the pile"
  [26]=>
  string(62) "The current board is: <6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1>"
  [27]=>
  string(33) "Next Player to move is: PlayerOne"
  [28]=>
  string(30) "PlayerOne draws the tile <1:4>"
  [29]=>
  string(33) "Next Player to move is: PlayerTwo"
  [30]=>
  string(67) "PlayerTwo plays the tile <2:6> by adding it to the left of the pile"
  [31]=>
  string(67) "The current board is: <2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1>"
  [32]=>
  string(33) "Next Player to move is: PlayerOne"
  [33]=>
  string(68) "PlayerOne plays the tile <1:4> by adding it to the right of the pile"
  [34]=>
  string(72) "The current board is: <2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4>"
  [35]=>
  string(33) "Next Player to move is: PlayerTwo"
  [36]=>
  string(67) "PlayerTwo plays the tile <2:3> by adding it to the left of the pile"
  [37]=>
  string(77) "The current board is: <3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4>"
  [38]=>
  string(33) "Next Player to move is: PlayerOne"
  [39]=>
  string(68) "PlayerOne plays the tile <4:4> by adding it to the right of the pile"
  [40]=>
  string(82) "The current board is: <3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4>"
  [41]=>
  string(33) "Next Player to move is: PlayerTwo"
  [42]=>
  string(67) "PlayerTwo plays the tile <3:6> by adding it to the left of the pile"
  [43]=>
  string(87) "The current board is: <6:3><3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4>"
  [44]=>
  string(33) "Next Player to move is: PlayerOne"
  [45]=>
  string(30) "PlayerOne draws the tile <2:2>"
  [46]=>
  string(33) "Next Player to move is: PlayerTwo"
  [47]=>
  string(30) "PlayerTwo draws the tile <1:6>"
  [48]=>
  string(33) "Next Player to move is: PlayerOne"
  [49]=>
  string(30) "PlayerOne draws the tile <0:5>"
  [50]=>
  string(33) "Next Player to move is: PlayerTwo"
  [51]=>
  string(67) "PlayerTwo plays the tile <1:6> by adding it to the left of the pile"
  [52]=>
  string(92) "The current board is: <1:6><6:3><3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4>"
  [53]=>
  string(33) "Next Player to move is: PlayerOne"
  [54]=>
  string(30) "PlayerOne draws the tile <6:6>"
  [55]=>
  string(33) "Next Player to move is: PlayerTwo"
  [56]=>
  string(30) "PlayerTwo draws the tile <0:3>"
  [57]=>
  string(33) "Next Player to move is: PlayerOne"
  [58]=>
  string(30) "PlayerOne draws the tile <1:3>"
  [59]=>
  string(33) "Next Player to move is: PlayerTwo"
  [60]=>
  string(30) "PlayerTwo draws the tile <3:4>"
  [61]=>
  string(33) "Next Player to move is: PlayerOne"
  [62]=>
  string(67) "PlayerOne plays the tile <1:3> by adding it to the left of the pile"
  [63]=>
  string(97) "The current board is: <3:1><1:6><6:3><3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4>"
  [64]=>
  string(33) "Next Player to move is: PlayerTwo"
  [65]=>
  string(67) "PlayerTwo plays the tile <0:3> by adding it to the left of the pile"
  [66]=>
  string(102) "The current board is: <0:3><3:1><1:6><6:3><3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4>"
  [67]=>
  string(33) "Next Player to move is: PlayerOne"
  [68]=>
  string(67) "PlayerOne plays the tile <0:0> by adding it to the left of the pile"
  [69]=>
  string(107) "The current board is: <0:0><0:3><3:1><1:6><6:3><3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4>"
  [70]=>
  string(33) "Next Player to move is: PlayerTwo"
  [71]=>
  string(67) "PlayerTwo plays the tile <0:2> by adding it to the left of the pile"
  [72]=>
  string(112) "The current board is: <2:0><0:0><0:3><3:1><1:6><6:3><3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4>"
  [73]=>
  string(33) "Next Player to move is: PlayerOne"
  [74]=>
  string(67) "PlayerOne plays the tile <2:2> by adding it to the left of the pile"
  [75]=>
  string(117) "The current board is: <2:2><2:0><0:0><0:3><3:1><1:6><6:3><3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4>"
  [76]=>
  string(33) "Next Player to move is: PlayerTwo"
  [77]=>
  string(68) "PlayerTwo plays the tile <3:4> by adding it to the right of the pile"
  [78]=>
  string(122) "The current board is: <2:2><2:0><0:0><0:3><3:1><1:6><6:3><3:2><2:6><6:0><0:1><1:1><1:2><2:4><4:5><5:5><5:1><1:4><4:4><4:3>"
  [79]=>
  string(40) "Game Over. Player PlayerTwo won the game"
}