This is a more advanced shiny app to play Kuhn Poker. For an introductionary example take first a look at the UltimatumGame example app.
Look at global.R
for the main code with detailed comments.
Some of the feature of this app:
Count number of rounds and total wins.
The pages that specify stages and final results are heavily customized (see pages subfolder).
Results of all plays are saved in a csv file.
Users play against the population of earlier players using a population bot created with bot_pop
. If not enough data is available for some history, they play against equilibrium strategies.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.