0 var begin = new Date().getTime(); while (new Date().getTime() - begin < 3000) { var pickedNode = this.treePolicy(rootNode); var result = this.simulate(pickedNode.gameState); this.backPropogation(pickedNode, result); simCount += 1; } return this.bestAction(rootNode) } MCTS