Closed DrkSephy closed 9 years ago
The AI will make its moved by triggering click actions programmatically. In order to do this, we should look at jQuery's .trigger() method.
.trigger()
Alternatively, we can trigger click events like so:
// Click the square at (2, 1) $('.row > .square[data-x=' + 2 + '][data-y=' + 1 + ']').click();
The AI will make its moved by triggering click actions programmatically. In order to do this, we should look at jQuery's
.trigger()
method.