diff --git a/README.md b/README.md index a64b20d..087d218 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -# Coup CLI - +# Coup
@@ -119,6 +118,25 @@ The default implementation are the methods of the `StaticBot` which only takes `Income` and is forced to coup by the engine if it accumulated more or equal to 10 coins. It does not challenge, counter or counter challenge. +The simplest way to build a bot by falling back to static behavior for each method would be: + +```rust +use coup::bot::BotInterface; + +pub struct MyBot; + +impl BotInterface for MyBot { + fn get_name(&self) -> String { + String::from("MyBot") + } +} +``` + +_(This is what the `StaticBot` is.)_ + +From there you can choose which, if not all, of the below methods you change to +make this bot your own. + ### Methods of the bot The methods of `BotInterface` that will define the behavior of your bot.