This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Simple maze generator in Haskell | |
-- Jacob Conrad Martin | |
-- http://jacobconradmartin.com | |
import System.Random | |
import Debug.Trace | |
import Control.Monad.State | |
data Location = Location { x::Int, y::Int } deriving (Eq) | |
data Path = Path { from::Location, to::Location } deriving (Eq) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ant Foraging Simulator | |
// Jacob Conrad Martin | |
// http://jacobconradmartin.com | |
import processing.video.*; | |
MovieMaker mm; | |
// *** CONFIG *** | |
int worldWidth = 400; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Evolution experiment | |
// Jacob Conrad Martin | |
// http://jacobconradmartin.com | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> | |
// ---------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Evolution experiment | |
// Jacob Conrad Martin | |
// http://jacobconradmartin.com | |
import std.stdio; | |
import std.string; | |
import std.random; | |
import std.c.time; | |
import std.array; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ant Foraging Simulator | |
// Jacob Conrad Martin | |
// http://jacobconradmartin.com | |
import processing.video.*; | |
MovieMaker mm; | |
// *** CONFIG *** | |
int worldWidth = 400; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple maze generator in Haskell | |
// Jacob Conrad Martin | |
// http://jacobconradmartin.com | |
import System.Random | |
import Debug.Trace | |
import Control.Monad.State | |
data Location = Location { x::Int, y::Int } deriving (Eq) | |
data Path = Path { from::Location, to::Location } deriving (Eq) |