This file contains hidden or 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
module Core where | |
type Columns = Int | |
type Rows = Int | |
type Point = (Rows, Columns) | |
type Apple = Point | |
type Snake = [Point] | |
type Moves = [Move] | |
data Move = North | South | West | East deriving (Show) |
This file contains hidden or 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
let john = { name: "John", age: 18 } | |
john.name = "Patricio" |
OlderNewer