18 lines
382 B
C
18 lines
382 B
C
#include "display.h"
|
|
#include <stdio.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 ("");
|
|
}
|
|
}
|