Thought Email List: space rocket design and manufacture To: rocket engineer 2, rocket engineer 3 From: rocket engineer Subject: running into an issue hey guys i'm having trouble getting the rocket to launch, i don't know what i'm doing wrong here are my plans #!/usr/bin/env python3 # space venture 2 import sys import blessings class RocketShip: def __init__(self, material=sys.stdout): self.material = blessings.Terminal(stream=material) self.head_room = 8 def build(self): self.position(0) self.nose() self.body() self.tail_exhaust() return self def launch(self): for pos in range(0, self.space): self.position(pos) self.nose() self.body() self.tail_exhaust(pos) return self @property def space(self): return self.material.height def position(self, altitude): coords = self.material.move(self.space - altitude + self.head_room, 0) self.material.stream.write(coords) self._altitude = altitude def _build_launch(self, plan): if self._altitude > -self.head_room: self.material.stream.write(f'{plan}\n') self._altitude -= 1 def nose(self): self._build_launch(r''' ^ ''') self._build_launch(r''' / \ ''') self._build_launch(r''' / \ ''') def body(self): self._build_launch(r''' | | ''') self._build_launch(r''' | | ''') self._build_launch(r''' | | ''') def tail_exhaust(self, mod=0): if mod % 2: self._build_launch(r''' |$$$| ''') self._build_launch(r'''/$$$ \ ''') self._build_launch(r''' $$$ ''') self._build_launch(r''' $ $ ''') self._build_launch(r''' ''') else: self._build_launch(r''' |$$$| ''') self._build_launch(r'''/ $$$\ ''') self._build_launch(r''' $$$ ''') self._build_launch(r''' $ $ ''') self._build_launch(r''' ''') RocketShip().build().launch()