This commit is contained in:
2024-12-14 04:13:59 +01:00
parent 5a2a2afe0a
commit 19a05574ab
5 changed files with 31 additions and 33 deletions

View File

@@ -1,17 +1,17 @@
#include <stdio.h>
#include "display.h"
#include <stdio.h>
void screenDisplay( unsigned short int **tab,int size)
void
screenDisplay (unsigned short int **tab, int size)
{
//puts("0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ");
char element[7] ={' ','#','S','.','*','@','+'} ;
for(int i=0;i<size;++i)
// puts("0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ");
char element[7] = { ' ', '#', 'S', '.', '*', '@', '+' };
for (int i = 0; i < size; ++i)
{
for(int j=0;j<size;++j)
for (int j = 0; j < size; ++j)
{
printf("%c ",element[tab[i][j]]);
printf ("%c ", element[tab[i][j]]);
}
puts("");
}
puts ("");
}
}