tictactoe example #99
Unanswered
PedroBatistop
asked this question in
Q&A
Replies: 1 comment
-
this library won't provide tictactoe game engine, you would need to implement the logic by yourself. And the tictactoe method provided by this lib is just for visualization. The documentation says that
So the basic example would be: import { Canvas as canvacord } from "canvacord";
const game = getTicTacToe(); // implement this logic yourself
const cells = game.board.getCells(); // implement this logic yourself, imagine it returns object { a1: "X", b2: "O", ... }
const board = canvacord.tictactoe(cells); // image buffer, do something with this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
could you give me an example of how to use tictactoe, pls?
Beta Was this translation helpful? Give feedback.
All reactions