bot_mixture: Bot that mixes between different bots

Description Usage Arguments Details See Also

View source: R/bots.R

Description

The first time the bot is called for a particular player in a play He picks a child bot randomly. Then it continues with that child bot for this player the whole play.

Usage

1
bot_mixture(game, player, child_bots, prob = NULL, ...)

Arguments

game

the game object

player

the player number of this bot

child_bots

A list of child pots

prob

A vector of weights for each child bot. If NULL (default) all are equally likely.

Details

If you use make_bots or call repeatedly bot_mixture to generate mixture bots for each player, the child bots will be independently drawn for each player.

Instead, if bot1 is a mixture bot for player 1 and you create a mixture bot for player 2 by bot2 = bot1\nbot2$player = 2 then bot2 will select in every play the same child bot than bot1.

See Also

Other Bots: bot_eq, bot_pop, bot_random, bot_tables, make_bots, play_bot_vs_bot


skranz/gtreeWebPlay documentation built on Nov. 17, 2019, 9:15 a.m.