-2
I’m doing a college paper that requires me to do the Space Invaders game. I was able to make the game matrix and now I need to put the ships inside it, for now it’s like this:
I need to print the ships so they stay that way:
V V V V
V V V V
Note: I assign 'V' to the ship.
Could someone give me an idea of how I could do this?
Matrix:
matriz = []
for i in range(LINHA_MAXIMA+1):
matriz.append([' ']*(COLUNA_MAXIMA+1))
Matrix printing:
for linha in matriz:
print("|", end="")
for posicao in linha:
print(posicao, end="")
print("|", end="")
print("")
Do you fill the matrix ? Or run these two blocks in sequence ?
– Isac
Fills the matrix
– Vinicius
How you’re filling in the matrix ?
– Isac