(code)
Result:
Code:
checkSpot( 1, 1, 1 )
Friendly piece. Continue pathing.
Array
(
[0] => 1,1
)
checkSpot( 0, 1, 1 )
Edge of the board or enemy piece. Life is over.
checkSpot( 2, 1, 1 )
Friendly piece. Continue pathing.
checkSpot( 1, 1, 1 )
Friendly piece. Continue pathing.
Array
(
[0] => 1,1
)
checkSpot( 0, 1, 1 )
Edge of the board or enemy piece. Life is over.
checkSpot( 2, 1, 1 )
Friendly piece. Continue pathing.
1 1 1 0 0 0 2 0 0 0 2 0 0 0 0 0
checkSpot( 1, 1, 1 ) Friendly piece.
[ ] [o] [ ] [ ] [o]->[o] [o] [ ]
Leave a comment: