Changing Project Structure

This commit is contained in:
2026-04-26 13:48:26 -04:00
parent 3607c4bf36
commit 8a4812973c
9 changed files with 8 additions and 10 deletions

6
.vscode/tasks.json vendored
View File

@@ -9,10 +9,8 @@
"-Wall", "-Wall",
"-g", "-g",
"main.c", "main.c",
"court.c", "src/*.c",
"gameServer.c", "src/network/*.c",
"term.c",
"network/*.c",
"-o", "-o",
"netpong", "netpong",
"-lncurses" "-lncurses"

View File

@@ -2,7 +2,7 @@
CC = gcc CC = gcc
CFLAGS = -Wall -g CFLAGS = -Wall -g
NETPONG_SRC = main.c term.c court.c gameServer.c $(wildcard network/*.c) NETPONG_SRC = main.c $(wildcard src/*.c) $(wildcard src/network/*.c)
LIBS = -lncurses LIBS = -lncurses

2
main.c
View File

@@ -1,4 +1,4 @@
#include "game.h" #include "include/game.h"
#include <unistd.h> #include <unistd.h>
#include <stdbool.h> #include <stdbool.h>

View File

@@ -1,4 +1,4 @@
#include "game.h" #include "../include/game.h"
#include <curses.h> #include <curses.h>
#include <signal.h> #include <signal.h>

View File

@@ -1,4 +1,4 @@
#include "game.h" #include "../include/game.h"
#include <curses.h> #include <curses.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -1,4 +1,4 @@
#include "networking.h" #include "../../include/network/networking.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -1,4 +1,4 @@
#include "game.h" #include "../include/game.h"
#include <curses.h> #include <curses.h>
#include <stdio.h> #include <stdio.h>