Skip to content

Instantly share code, notes, and snippets.

@benrules2
Created January 5, 2017 23:34
Show Gist options
  • Select an option

  • Save benrules2/436c74eae7ec16e24895cbc8d3622a41 to your computer and use it in GitHub Desktop.

Select an option

Save benrules2/436c74eae7ec16e24895cbc8d3622a41 to your computer and use it in GitHub Desktop.
Main Markov Chain Function
if __name__ == '__main__':
message = read_file(sys.argv[1])
chain = build_chain(message)
message = generate_message(chain)
write_file("output.txt", message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment