<commit_before>#ifndef MAZE_ALGORITHM_H
#define MAZE_ALGORITHM_H

#include "define.h"
#include "MazeMap.h"
#include "Robot.h"

typedef int[MAZE_HEIGHT][MAZE_WIDTH] ff_map;

// flood fill algorithms
void malgo_floodfill_compute(int targetX, targetY, MazeMap *mm, ff_map *in);
void malgo_floodfill_recompute_target(int targetX, int targetY, ff_map *in);
void malgo_floodfill_make_move(int xPos, int yPos, ff_map *map);

#endif
<commit_msg>put ff_map inside a struct, function changes ff_map should go in a struct so we can get the right sizeof without confusion.  There also may be some things (like the target) that we want to store away in that group.  We will assume that we will want to build the ff map at the center first.  We can then translate the target somewhere else since all of the relative positionings stay the same.<commit_after>#ifndef MAZE_ALGORITHM_H
#define MAZE_ALGORITHM_H

#include "define.h"
#include "MazeMap.h"
#include "Robot.h"

typedef struct {
	int array[MAZE_HEIGHT][MAZE_WIDTH];
} ff_map;

#define MALGO_FF_BAD -1

// flood fill algorithms
void malgo_floodfill_compute(MazeMap *mm, ff_map *in);
void malgo_floodfill_recompute_target(int targetX, int targetY, ff_map *in);
void malgo_floodfill_make_move(int xPos, int yPos, ff_map *map);

#endif

{'fraction_non_alphanumeric': 0.0784313725490196, 'fraction_numerical': 0.000784313725490196, 'mean_word_length': 5.897297297297297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3897159', 'n_tokens_mistral': 475, 'n_tokens_neox': 452, 'n_words': 152}