Skip to content

Instantly share code, notes, and snippets.

View johnnygoodman's full-sized avatar

Johnny Goodman johnnygoodman

View GitHub Profile
@builtinnya
builtinnya / colossal-cue-adventure.py
Last active November 12, 2021 08:17
A trivial code for solving the Colossal Cue Adventure.
# A trivial code for solving the Colossal Cue Adventure
# URL: http://adventure.cueup.com/
# Level 1: The VAX's MTH$RANDOM % 36 Roulette
def vax_rng_next(x):
"""Generate the next pseudo-random number."""
a, c, m = 69069, 1, 2**32
return (a * x + c) % m