I'm doing a college job that requires me to play the Space Invaders game. I was able to make the matrix of the game and now I need to put the ships inside it, for now it is like this:
Ineedtoprinttheshipssotheylooklikethis:
VVVV
VVVV
Note:Iassign'V'totheship.
CouldsomeonegivemeanideahowIcoulddothis?
Matrix:
matriz=[]foriinrange(LINHA_MAXIMA+1):matriz.append(['']*(COLUNA_MAXIMA+1))
MatrixPrinting:
forlinhainmatriz:print("|", end="")
for posicao in linha:
print(posicao, end="")
print("|", end="")
print("")