From 7ac9c048bb7c00d614230997df520b9319f0a030 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Tue, 10 Nov 2026 09:37:40 +0300 Subject: publish --- src/common.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/common.h (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..7a186ba --- /dev/null +++ b/src/common.h @@ -0,0 +1,27 @@ +#ifndef INCLUDED_COMMON_H +#define INCLUDED_COMMON_H + +extern struct path { + u8 *items; + u32 count; + u32 capacity; +} path; + +extern struct crdf { + struct crdf_entry { + f32 c; + u32 j; + } *items; + u32 count; + u32 capacity; +} crdf; + +f32 build_crdf (u8 i); +f32 measure_path (void); +void added_j (u8 j); +void export_path (u8 path[NODE_COUNT], int generation); +bool finished (void); + +extern f32 (*pheromones_current)[NODE_COUNT]; + +#endif // INCLUDED_COMMON_H -- cgit v1.3.1