Remove comments and printMap()
This commit is contained in:
parent
1b63c17fd7
commit
234ea6130f
12
client.c
12
client.c
@ -6,7 +6,6 @@
|
||||
* @brief Client for OSUE exercise 1B `Battleship'.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
@ -290,17 +289,6 @@ static void makeHit(void)
|
||||
markSunk();
|
||||
}
|
||||
|
||||
static void printMap(void)
|
||||
{
|
||||
for (int y = 0; y < MAP_SIZE; y++) {
|
||||
for (int x = 0; x < MAP_SIZE; x++) {
|
||||
fprintf(stdout, "%d\t", field[x][y]);
|
||||
}
|
||||
fprintf(stdout, "\n");
|
||||
}
|
||||
fprintf(stdout, "\n");
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct sigaction sa;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user