Skip to content

Instantly share code, notes, and snippets.

View arknave's full-sized avatar

Arnav Sastry arknave

View GitHub Profile
@arknave
arknave / bulba.hs
Last active January 2, 2016 11:09
Finding Bulbasaur in Pokemon Red, using Haskell!
import qualified Data.ByteString.Char8 as BS
import Data.Char
oneString :: String -> Int -> String
oneString s n = map (\x -> chr $ (ord x) + n) s
allStrings :: String -> [BS.ByteString]
allStrings s = map (BS.pack . oneString s) [-65..165]
showByteString :: Char -> Char