pedrolemoz

Main

Jul 3rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. import estrutura as game, time
  2.  
  3. def iniciarJogo():
  4.     tabuleiro = game.criarTabuleiro()
  5.     p = [0, 0]
  6.     k = "*"
  7.     tabuleiro[p[0]][p[1]] = k
  8.     game.arquivo()
  9.     game.abismo(tabuleiro)
  10.     while True:
  11.         game.exibeTabuleiro(tabuleiro)
  12.         print(p)
  13.         print(pos)
  14.         m = input()
  15.         if m in "a":
  16.             game.moveEsquerda(tabuleiro, p, k)
  17.         if m in "d":
  18.             game.moveDireita(tabuleiro, p, k)
  19.         if m in "w":
  20.             game.moveCima(tabuleiro, p, k)
  21.         if m in "s":
  22.             game.moveBaixo(tabuleiro, p, k)
  23.  
  24.  
  25. iniciarJogo()
Add Comment
Please, Sign In to add comment