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
NB. Nicholas Paul | |
NB. 9 Dec 2016 | |
NB. Suppose every letter below represents a distinct positive | |
NB. integer, non of which are zero. What is a possible value | |
NB. for each letter? | |
NB. | |
NB. W R O N G | |
NB. + W R O N G | |
NB. ----------- |
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
-- Nicholas Paul | |
-- A simple tic-tac-toe game written in Haskell | |
import Data.List | |
import Data.Char | |
import Data.Time.Clock.POSIX | |
-- Main function. We will simply call our gameLoop with | |
-- an empty board | |
main = do |
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
--Maze Generator | |
--Nicholas Paul | |
-- ZeroBrane's turtle library | |
require "turtle" | |
math.randomseed(os.time()) | |
SIZE = 100 --Width of tiles in the maze | |
SCALE = 8 --Drawing Scale |
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
NB. A J script for drawing fractals from the julia set. | |
NB. Algorithm from: | |
NB. http://mathemartician.blogspot.com/2012/07/julia-set-in-julia.html | |
require 'viewmat' | |
S =: 100 NB. Detail level of image | |
NB. The iteration verb | |
julia =: 3 : 0 "0 |