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