You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
418 B

"""Pipe springscript file to stdin. Comments (#) can be escaped with grep -v."""
import sys
from intcode import AIC
def main():
codes = AIC.parse_file("day21.txt")
ss = SSIC(codes, script=sys.stdin.read())
ss.run()
class SSIC(AIC):
def __init__(self, *args, script="", **kwargs):
super().__init__(*args, **kwargs)
self.input_text = script
if __name__ == "__main__":
main()