18 lines
369 B
C
18 lines
369 B
C
#include <stdio.h>
|
|
#include "display.h"
|
|
|
|
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)
|
|
{
|
|
for(int j=0;j<size;++j)
|
|
{
|
|
printf("%c ",element[tab[i][j]]);
|
|
}
|
|
puts("");
|
|
}
|
|
|
|
}
|