Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

strategies source pure

Package strategies holds starter bots written as plain functions. Copy one as a starting point for your own bot.

Overview

Package strategies holds starter bots written as plain functions. Copy one as a starting point for your own bot.

Functions 4

func Brawler

1func Brawler(s bot.State) bot.Action
source

Brawler chases the enemy and fights. Once it is ahead it defends.

func Coward

1func Coward(s bot.State) bot.Action
source

Coward collects coins but runs from the enemy, and defends when cornered.

func Hunter

1func Hunter(s bot.State) bot.Action
source

Hunter goes for the nearest coin and attacks when the enemy is next to it.

func Trickster

1func Trickster(s bot.State) bot.Action
source

Trickster collects coins and, when the enemy is next to it, alternates between parrying and attacking so a predictable attacker walks into parries.

Dependencies

Imports 1

/p/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/strategies

Imported by indexer

Source Files 2