Skip to content

Instantly share code, notes, and snippets.

View jedesah's full-sized avatar
💭
Debugging my digestion

Jean-Rémi Desjardins jedesah

💭
Debugging my digestion
View GitHub Profile
@jedesah
jedesah / Day 1.md
Last active August 29, 2015 14:10 — forked from gangstead/Day 1.md

Friday 11/14/14

notes by Steven Gangstead

Rapture Art of One-liner - Jon Pretty @propensive

rapture.io -collection of libraries for scala

jawn json parser. Quicker than Jackson, and I guess Jackson must normally be considered the quickest.

My thoughts: Awesome talk. Look into rapture, looks useful. Jon is smart.

--Authored by Grant Slatton on 2013 October 8
--All code is released to the public domain under the terms of [http://unlicense.org]
import Data.List
import Data.Ord
import Data.Maybe
--Define how you represent your GameState
--In Connect 4, it's just a list of length width of sublists of length height,
--and an Int for whose turn it is, player 1 == 1, player 2 == -1