DU CODE Snake Competition
 
Loading...
Searching...
No Matches
my_bot.h
1#pragma once
2
3#include "lib/bot.h"
4
5class MyBot : public Bot {
6public:
7 Direction think(const Grid &grid) const;
8};
Represents the grid of cells containing snakes and fruits. Grid is used in the MyBot::think function ...
Definition grid.h:22
Definition my_bot.h:5
Direction think(const Grid &grid) const
The function you'll implement for your bot! The default code here simply has MyBot move randomly,...
Definition my_bot.cpp:10
Direction
Represents a direction and is returned by your bot in MyBot::think.
Definition direction.h:9