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