Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Domino

Language: Layout:
+ ] Show input
Absolute running time: 0.1 sec, cpu time: 0.06 sec, memory peak: 8 Mb, absolute service time: 0,12 sec 
edit mode |  history  | discussion
array(38) {
  [0]=>
  string(23) "The first card is <2:4>"
  [1]=>
  string(34) "PlayerTwo is the first one to play"
  [2]=>
  string(68) "PlayerTwo plays the card <3:4> by adding it to the right of the pile"
  [3]=>
  string(32) "The current board is: <2:4><4:3>"
  [4]=>
  string(67) "PlayerOne plays the card <0:2> by adding it to the left of the pile"
  [5]=>
  string(37) "The current board is: <0:2><2:4><4:3>"
  [6]=>
  string(68) "PlayerTwo plays the card <1:3> by adding it to the right of the pile"
  [7]=>
  string(42) "The current board is: <0:2><2:4><4:3><3:1>"
  [8]=>
  string(68) "PlayerOne plays the card <1:5> by adding it to the right of the pile"
  [9]=>
  string(47) "The current board is: <0:2><2:4><4:3><3:1><1:5>"
  [10]=>
  string(67) "PlayerTwo plays the card <0:0> by adding it to the left of the pile"
  [11]=>
  string(52) "The current board is: <0:0><0:2><2:4><4:3><3:1><1:5>"
  [12]=>
  string(68) "PlayerOne plays the card <5:6> by adding it to the right of the pile"
  [13]=>
  string(57) "The current board is: <0:0><0:2><2:4><4:3><3:1><1:5><5:6>"
  [14]=>
  string(68) "PlayerTwo plays the card <1:6> by adding it to the right of the pile"
  [15]=>
  string(62) "The current board is: <0:0><0:2><2:4><4:3><3:1><1:5><5:6><6:1>"
  [16]=>
  string(30) "PlayerOne draws the card <1:2>"
  [17]=>
  string(68) "PlayerOne plays the card <1:2> by adding it to the right of the pile"
  [18]=>
  string(67) "The current board is: <0:0><0:2><2:4><4:3><3:1><1:5><5:6><6:1><1:2>"
  [19]=>
  string(68) "PlayerTwo plays the card <2:5> by adding it to the right of the pile"
  [20]=>
  string(72) "The current board is: <0:0><0:2><2:4><4:3><3:1><1:5><5:6><6:1><1:2><2:5>"
  [21]=>
  string(30) "PlayerOne draws the card <0:1>"
  [22]=>
  string(67) "PlayerOne plays the card <0:1> by adding it to the left of the pile"
  [23]=>
  string(77) "The current board is: <1:0><0:0><0:2><2:4><4:3><3:1><1:5><5:6><6:1><1:2><2:5>"
  [24]=>
  string(67) "PlayerTwo plays the card <1:1> by adding it to the left of the pile"
  [25]=>
  string(82) "The current board is: <1:1><1:0><0:0><0:2><2:4><4:3><3:1><1:5><5:6><6:1><1:2><2:5>"
  [26]=>
  string(30) "PlayerOne draws the card <2:6>"
  [27]=>
  string(30) "PlayerOne draws the card <3:3>"
  [28]=>
  string(30) "PlayerOne draws the card <0:4>"
  [29]=>
  string(30) "PlayerOne draws the card <0:6>"
  [30]=>
  string(30) "PlayerOne draws the card <3:5>"
  [31]=>
  string(68) "PlayerOne plays the card <3:5> by adding it to the right of the pile"
  [32]=>
  string(87) "The current board is: <1:1><1:0><0:0><0:2><2:4><4:3><3:1><1:5><5:6><6:1><1:2><2:5><5:3>"
  [33]=>
  string(67) "PlayerTwo plays the card <1:4> by adding it to the left of the pile"
  [34]=>
  string(92) "The current board is: <4:1><1:1><1:0><0:0><0:2><2:4><4:3><3:1><1:5><5:6><6:1><1:2><2:5><5:3>"
  [35]=>
  string(67) "PlayerOne plays the card <4:4> by adding it to the left of the pile"
  [36]=>
  string(97) "The current board is: <4:4><4:1><1:1><1:0><0:0><0:2><2:4><4:3><3:1><1:5><5:6><6:1><1:2><2:5><5:3>"
  [37]=>
  string(40) "Game Over. Player PlayerOne won the game"
}

    
                
λ
.NET NoSQL database for rapid development