05-13-2020, 12:33 PM
Hi, I'm trying to work with triangle tile for a board. So first I try to simply modify the Tic-Tac-Toe, allow the intersections with intersections:true and check the win by an isLine ludeme, here is the code of this little test :
Then I try to play the game and this happen : Image
As you can see in the image the game finished as a draw, even with the alignement of three pieces. Then I try using the customBoard function to draw some kind of triangle and the isLine is working, but the board doesn't look very good. Is there a bug for the triangle parameter or have I miss something ?
Thank by advance
Code:
(game "Tic-Tac-Toe"
(players 2)
(equipment {
(board (triangle 4) intersections:true)
(piece "Disc" P1)
(piece "Cross" P2)
}
)
(rules
(play (add (empty)))
(end (if (isLine 3) (result Mover Win)))
)
)
Then I try to play the game and this happen : Image
As you can see in the image the game finished as a draw, even with the alignement of three pieces. Then I try using the customBoard function to draw some kind of triangle and the isLine is working, but the board doesn't look very good. Is there a bug for the triangle parameter or have I miss something ?
Thank by advance