def Bar(rot): """Tetris Ship 'Bar' . Shape: B B B B """ retval = Ship("Bar", [(0, 0), (1, 0), (2, 0), (3, 0)]) retval.rotate(rot) return retval
def Square(rot): """Tetris Ship 'Square' . . S S Shape: S S """ retval = Ship("Square", [(0, 0), (1, 0), (0, 1), (1, 1)]) retval.rotate(rot) return retval
def Tee(rot): """Tetris Ship 'Tee' . . T Shape: T T T """ retval = Ship("Tee", [(0, 0), (1, 0), (0, 1), (-1, 0)]) retval.rotate(rot) return retval
def R_Boot(rot): """Tetris Ship 'Right Boot' . . R . R Shape: R R """ retval = Ship("R Boot", [(0, 0), (-1, 0), (0, 1), (0, 2)]) retval.rotate(rot) return retval
def L_Boot(rot): """Tetris Ship 'Left Boot' . . L . L Shape: L L """ retval = Ship("L Boot", [(0, 0), (1, 0), (0, 1), (0, 2)]) retval.rotate(rot) return retval
def L_ZigZag(rot): """Tetris Ship 'Left ZigZag' . . L . L L Shape: L """ retval = Ship("L Zig-Zag", [(0, 0), (0, 1), (-1, 1), (-1, 2)]) retval.rotate(rot) return retval
def R_ZigZag(rot): """Tetris Ship 'Right ZigZag' . . R . R R Shape: R """ retval = Ship("R Zig-Zag", [(0, 0), (0, 1), (1, 1), (1, 2)]) retval.rotate(rot) return retval
def Destroyer(rot): retval = Ship("Destroyer", [(0, 0), (1, 0)]) retval.rotate(rot) return retval
def Submarine(rot): retval = Ship("Submarine", [(0, 0), (1, 0), (2, 0)]) retval.rotate(rot) return retval
def Cruiser(rot): retval = Ship("Cruiser", [(0, 0), (1, 0), (2, 0)]) retval.rotate(rot) return retval
def Battleship(rot): retval = Ship("Battleship", [(0, 0), (1, 0), (2, 0), (3, 0)]) retval.rotate(rot) return retval
def Carrier(rot): retval = Ship("Aircraft Carrier", [(0, 0), (1, 0), (2, 0), (3, 0), (4, 0)]) retval.rotate(rot) return retval