View ai03.hs
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
-- This code was used in the paper: | |
-- P.C.R. Lane and F.Gobet, | |
-- 'Developing reproducible and comprehensible computational models,' | |
-- Artificial Intelligence, 144:251-263, 2003. | |
-- | |
-- Run it using the Glasgow Haskell Compiler, e.g.: ghci ai03.hs -e main | |
data PIECE = PIECE{xCoord, yCoord::Int, piece::Char} | |
deriving (Eq,Show) | |
data NODE = NODE{image::[PIECE], children::[LINK]} |
View demo-1.py
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
# Demonstration 1 : jython script | |
# | |
# jython is available from https://jython.org/downloads.html | |
# | |
# Either | |
# install jython using the installer, and run | |
# > jython demo-1.py | |
# | |
# Or | |
# download the standalone jython jar file, and run |