Skip to content

Instantly share code, notes, and snippets.

@mvr
mvr / gist:8081429
Last active November 10, 2023 02:36
A Whirlwind Tour of Combinatorial Games in Haskell
A Whirlwind Tour of Combinatorial Games in Haskell
==================================================
Combinatorial games are an interesting class of games where two
players take turns to make a move, changing the game from one position
to another. In these games, both players have perfect information
about the state of the game and there is no element of chance. In
'normal play', the winner is declared when the other player is unable
to move. A lot of famous strategy games can be analysed as
combinatorial games: chess, go, tic-tac-toe.
@laszlopandy
laszlopandy / CreateGist.elm
Last active December 17, 2015 16:58
Gist creator using GitHub's Http API from Elm
import Json
import Dict
import Http
import Graphics.Input as Input
jsonObject list = Json.Object (Dict.fromList list)
sendAfter sig = Http.send <| foldp (\b _ -> b) (Http.get "") sig
asObject obj =