Dear Jan,
thank you for using our framework. I hope it will serve you well in writing your master's thesis.
Your approach with replacing the opponent's hand cards is definitely possible with the framework and is even the intended way of doing so. Other agents have done so in the past. If I remember correctly, both, the Predator MCTS by Max Frick, Ünal Akkaya and the Tyche MCTS agent by Kai Bornemann, have done so. You can find them in the Bot Downloads section on our website to see how they did it. When using the Options method for your opponent you should always be sure that the NoWay card is not included anymore. This is important since the framework will not be able to handle any NoWay card options.
The Dynamic Lookahead agent by Tom Heimbrodt has been a strong agent in last years competition. In case you want to compare if your agent performs better than this one, you should try to use the same search scheme and only add the replacement of cards. The dynamic lookahead agent features an evolutionary optimized scoring function. Nevertheless, it may be necessary to tweak it for your agent.
Instead of rating the state from your opponent's view you might just always rate it from the current player's view and minimize the score in case you applied an opponent's action. While I am surprised that your proposed solution does not work properly, this approach should definitely work. Furthermore, the alpha-beta pruning agent by David Fernandez Atienza and the one by Hans-Martin Wulfmeyer should both use any kind of scoring the opponent's moves.
Since I have also done some work on Partial Observability of cards, I will send you an e-mail with some further details.
Best regards,
Alexander