🤖 Cropbot / C++ Simulator
🏆 Score 0
💰 50
💧 Tank 50/50
🔋 Energy 120/120
Tick 0
Speed 5
// Console output. Use print(val) in your code.
Seeds
🌾 10
🥔 5
🎃 🔒
🌽 🔒
🍄 🔒
🔒
buy_seeds(CropType::WHEAT, 10)
Base
Empty
Tilled
Planted
Growing
Ready
Drone
C++ ● saved
📋 API Reference
Data Types
Direction
NORTH EAST SOUTH WEST
CellState
EMPTY TILLED PLANTED GROWING READY BASE
CropType
WHEAT POTATO PUMPKIN CORN MUSHROOM COFFEE
Crops
🌾
CropType::WHEAT
8+12 💰 2 🌱 1
🥔
CropType::POTATO
14+20 💰 5 🌱 2
🎃
CropType::PUMPKIN
25+40 💰 10 🌱 5
🌽
CropType::CORN
18+27 💰 9 🌱 3
🍄
CropType::MUSHROOM
15+25 💰 10 🌱 4
water > 40 to grow
CropType::COFFEE
40+80 💰 35 🌱 20
Movement 1 tick
void move(Direction dir)
void move_north()
void move_south()
void move_east()
void move_west()
Field 1 tick
void till()
void plant(CropType crop)
void harvest()
void water()
void wait(int ticks)
Cell 0 ticks
CellState get_cell_state()
CellState get_cell_state(int x, int y)
CropType get_crop()
CropType get_crop(int x, int y)
int get_water_level()
int get_water_level(int x, int y)
Drone 0 ticks
int get_x()
int get_max_x()
int get_y()
int get_max_y()
int is_at_base()
int get_energy()
int get_max_energy()
int get_tank()
int get_max_tank()
int get_score()
Economy 0 ticks
int get_gold()
int get_seeds(CropType)
void buy_seeds(CropType, int)
void buy_water(int packs)
System 0 ticks
int get_ticks()
void print(int val)