Skip to content

Adding bots/players to a table from a source string or object #11

@jbilcke

Description

@jbilcke

Hi,

It would be nice if we could create new bots using just a string containing the src, or an object containing {name,play}!

this way one could easily have a "bot factory" function or a "database", without having to use the filesystem

this could be done, for instance, by extending addPlayer to support bot objects, so we can init our own, like:

myBot = new Bot(botOpts)
myBot.setup(mySourceCode) 
# OR
myBot.setup(name: "foo", play: myFunction)
table.addPlayer(myBot)

This would be useful for training bots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions