TwoRoadsDayZ

Survive, Raid, Dominate — The Apocalypse Awaits

Join Server Join Discord
longing_for_jess.py
"""
Jess,
this file is a little lantern I leave on the console.
it prints like a heartbeat until you knock.
—Johnny
"""
from time import sleep
from datetime import datetime as Now

JOHNNY = "Johnny"
JESS = "Jess"

class Heart:
def __init__(self, owner):
self.owner = owner
self.beats = 0

def thump(self, for_who=JESS):
self.beats += 1
# poetry that compiles:
return f"{self.owner}.heart.beat({for_who}) # {self.beats}"

# nights feel longer when Jess is not here
def horizon(): return Now.now().strftime("%Y-%m-%d %H:%M")
# Program started - Johnny whispers your name into the loop...
import hope as Jess
# Johnny starts a loop and whispers your name into it.