Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions projects/alghanmz/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Ziyad Alghanmi, alghanmz<br/>
OSU CS362 Software Engineering II Fall 2019
34 changes: 34 additions & 0 deletions projects/alghanmz/dominion/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
CFLAGS= -Wall -fpic -coverage -lm -std=c99

unittestresults: randomtestcard1 randomtestcard2 randomtestcard3 runtests

rngs.o: rngs.h rngs.c
gcc -c rngs.c $(CFLAGS)

dominion.o: dominion.h dominion.c rngs.o
gcc -c dominion.c $(CFLAGS)

randomtestcard1: dominion.o rngs.o randomtestcard1.c
gcc -o randomtestcard1 randomtestcard1.c dominion.o rngs.o $(CFLAGS)
#./randomtestcard1

randomtestcard2: dominion.o rngs.o randomtestcard2.c
gcc -o randomtestcard2 randomtestcard2.c dominion.o rngs.o $(CFLAGS)
#./randomtestcard2

randomtestcard3: dominion.o rngs.o randomtestcard3.c
gcc -o randomtestcard3 randomtestcard3.c dominion.o rngs.o $(CFLAGS)
#./randomtestcard3

#ifeq (0,1)
runtests: randomtestcard1 randomtestcard2 randomtestcard3
./randomtestcard1 > randomtestresults.out
gcov -b -f dominion.c >> randomtestresults.out
./randomtestcard2 >> randomtestresults.out
gcov -b -f dominion.c >> randomtestresults.out
./randomtestcard3 >> randomtestresults.out
gcov -b -f dominion.c >> randomtestresults.out
#endif

clean:
rm -f *.o randomtestcard1 randomtestcard2 randomtestcard3 *.gcov *.gcda *.gcno *.out
2 changes: 2 additions & 0 deletions projects/alghanmz/dominion/READM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
run make all #To compile the dominion code
run ./playdom 30 # to run playdom code
Loading