#ifndef UTILS_H #define UTILS_H // Clamp value between min and max int clamp(int value, int min, int max); // Check if coordinates are within map bounds int in_bounds(int x, int y, int width, int height); #endif // UTILS_H