Skip to content

Instantly share code, notes, and snippets.

@ImaginaryDevelopment
ImaginaryDevelopment / BReuse.Helpers.fs
Created March 31, 2025 15:32
Parse TF Modules FParsec
module BReuse.Helpers
open System
let failNullOrEmpty (x:string) =
if isNull x then failwith "Null not expected"
elif String.IsNullOrEmpty x then failwith "Empty not expected"
module String =
@ImaginaryDevelopment
ImaginaryDevelopment / Planets.fs
Last active September 4, 2025 21:24
IdlePlanetMiner spike
module IdlePlanetMiner
// =============================================================================
// CORE DATA TYPES
// =============================================================================
// Planet information from the wiki
type Planet = {
Name: string
BasePrice: int