DU CODE Snake Competition
 
Loading...
Searching...
No Matches
evil_bot.h
1#pragma once
2
3#include "lib/bot.h"
4
5class EvilBot : public Bot {
6public:
7 Direction think(const Grid &grid) const;
8};
Definition evil_bot.h:5
Direction think(const Grid &grid) const
This evil bot goes to the closest fruit on the board if one exists, else, just go in a random directi...
Definition evil_bot.cpp:16
Represents the grid of cells containing snakes and fruits. Grid is used in the MyBot::think function ...
Definition grid.h:22
Direction
Represents a direction and is returned by your bot in MyBot::think.
Definition direction.h:9