Advertisement
orneto

função desenha_tabuleiro

Oct 28th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. void desenha_tabuleiro(int linha_inicial, int col_inicial, int val[3][3])// para o jogo QC8
  2. {
  3. int l = linha_inicial;
  4. int c = col_inicial;
  5.  
  6. //desenha quadro
  7. gotoxy(l,c);
  8. printf("\332\304\304\304\302\304\304\304\302\304\304\304\277");
  9. gotoxy(l+1,c);
  10. printf("\263 %d \263 %d \263 %d \263", val[0][0], val[0][1], val[0][2]);
  11. gotoxy(l+2,c);
  12. printf("\303\304\304\304\305\304\304\304\305\304\304\304\264");
  13. gotoxy(l+3,c);
  14. printf("\263 %d \263 %d \263 %d \263", val[1][0], val[1][1], val[1][2]);
  15. gotoxy(l+4,c);
  16. printf("\303\304\304\304\305\304\304\304\305\304\304\304\264");
  17. gotoxy(l+5,c);
  18. printf("\263 %d \263 %d \263 %d \263", val[2][0], val[2][1], val[2][2]);
  19. gotoxy(l+6,c);
  20. printf("\300\304\304\304\301\304\304\304\301\304\304\304\331");
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement