Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / ants.c
Created November 26, 2010 06:33
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "ants.h"
void runSimulation(int steps, int numAnts, int pathLength, double bias, double decay){
// Allocate a block of Nodes and Ants
// Assuming pathLength of 50, it'd be as follows:
// Node[0..49] : path to food A (A)
// Node[50..99] : path to food B (B)