They play 1000s of hands either in a controlled environment such as using historical game data, or even against other bots to build a database and assess performance before use on live games.