I'm trying to build a remote tic-tac-toe game with my grandson. I'm storing the 'board' in a global array 'board' as a 3x3 array
var b = [[9,9,9],[9,9,9],[9,9,9]] global.set("board",b)
The board is a set of buttons and each button sends a payload like this for r0,c0
What I want to do in a
change node is set global.board to a number but if I use
global.board[msg.payload.r][msg.payload.c] I get an error.
Is there a way to achieve this?