state.player_return() #1173
Replies: 2 comments 4 replies
-
Hi @tonirm2077, It is a bit difficult to help without seeing the error. I don't really understand. Can you point us to a stack trace? Values are not constrained and can be in any range, though the ranges need to be specified by the MinUtility and MaxUtility functions. I'm not sure which exception you're talking about .. we have many games with values below 0. |
Beta Was this translation helpful? Give feedback.
-
Are you implementing a game and hence you wrote If so: would it be possible to try your negamax implementation first on existing game (i.e. Tic-Tac-Toe)? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to do some implementations using negamax in openspiel. However, I was having some problems with my terminal node heuristics. state.player_return(id_player_max). To return 1 if there is a victory or -1 if there is a defeat. But, apparently there is an exception, which only allows values greater than or equal to 0. Is there any way to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions