According to what I understand from the AlphaZero algorithm, a neural network is used to set value and prior probability for a node during the expansion stage of MCTS. On the other hand, according to the rules of the game, we need to set the value equal to +1 a win, -1 for a loss, or 0 for a draw.
Question: When do we use the neural network to predict the value and when do we use the rules of the game to set the value during the expansion stage of MCTS in AlphaZero?