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",
"-g",
"main.c",
"court.c",
"gameServer.c",
"term.c",
"network/*.c",
"src/*.c",
"src/network/*.c",
"-o",
"netpong",
"-lncurses"

View File

@@ -2,7 +2,7 @@
CC = gcc
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

2
main.c
View File

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

View File

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

View File

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

View File

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

View File

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