1

For the result function, you don't need to iterate through all the actions available for the given board. Instead you just need to return newboard which will result it the action parameter given in the result function is executed to the given board (given in parameter of the result function). So here are few things you need to do: check if the action ((i,j) ...


Only top voted, non community-wiki answers of a minimum length are eligible