Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import estrutura as game, time
- def iniciarJogo():
- tabuleiro = game.criarTabuleiro()
- p = [0, 0]
- k = "*"
- tabuleiro[p[0]][p[1]] = k
- game.arquivo()
- game.abismo(tabuleiro)
- while True:
- game.exibeTabuleiro(tabuleiro)
- print(p)
- print(pos)
- m = input()
- if m in "a":
- game.moveEsquerda(tabuleiro, p, k)
- if m in "d":
- game.moveDireita(tabuleiro, p, k)
- if m in "w":
- game.moveCima(tabuleiro, p, k)
- if m in "s":
- game.moveBaixo(tabuleiro, p, k)
- iniciarJogo()
Add Comment
Please, Sign In to add comment