Skip to content

Instantly share code, notes, and snippets.

View davidtweaver's full-sized avatar

David Weaver davidtweaver

View GitHub Profile
@nossidge
nossidge / Snowball
Last active December 23, 2024 03:06
C++ Generate valid snowball poems, using input file of example text and Markov chains to help make it grammatically correct.
/*
~~ Snowball Poem ~~
Snowball (also called a Chaterism): A poem in which each line is a single word,
and each successive word is one letter longer. One of the constrained writing
techniques invented by the Oulipo (Workshop of Potential Literature).
~~ Program Description ~~
This program takes input from the file "input-raw.txt". It examines the file for