Advertisement
orneto

Untitled

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