DU CODE Snake Competition
Loading...
Searching...
No Matches
my_bot.h
1
#pragma once
2
3
#include "lib/bot.h"
4
5
class
MyBot
:
public
Bot {
6
public
:
7
Direction
think
(
const
Grid
&grid)
const
;
8
};
Grid
Represents the grid of cells containing snakes and fruits. Grid is used in the MyBot::think function ...
Definition
grid.h:22
MyBot
Definition
my_bot.h:5
MyBot::think
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
Direction
Represents a direction and is returned by your bot in MyBot::think.
Definition
direction.h:9
src
my_bot.h
Generated by
1.13.2