diff --git a/.gitignore b/.gitignore index 7742e1d..ee97b74 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ cmake-build-debug past CMakeLists.txt toDo.md +.DS_Store # Prerequisites *.d diff --git a/src/main/c/Jason/ASCII_art.c b/src/main/c/Jason/ASCII_art.c new file mode 100644 index 0000000..1a09f0f --- /dev/null +++ b/src/main/c/Jason/ASCII_art.c @@ -0,0 +1,8 @@ +#include "ASCII_art.h" +#include + +int ASCII_Art(){ + + + return 0; +} \ No newline at end of file diff --git a/src/main/c/Jason/ASCII_art.h b/src/main/c/Jason/ASCII_art.h new file mode 100644 index 0000000..f726a3f --- /dev/null +++ b/src/main/c/Jason/ASCII_art.h @@ -0,0 +1,9 @@ +#ifndef ASCII_ART_H +#define ASCII_ART_H + +int ASCII_Art(); + + + + +#endif diff --git a/src/main/c/main.c b/src/main/c/main.c index 4dc37a9..6036ea8 100644 --- a/src/main/c/main.c +++ b/src/main/c/main.c @@ -14,6 +14,7 @@ #include "SchereSteinPapier.h" #include "hangman.h" #include "tictactoe.h" +#include "ASCII_art.h" void openInterface(); @@ -35,9 +36,10 @@ void openInterface() "Du hast folgende Spiele zur Auswahl:\n\n" "1: Schere-Stein-Papier\n" "2: Hangman\n" - "3: TicTacToe\n"); + "3: TicTacToe\n" + "5: ASCII - Art\n"); printf("\nBitte waehle die Zahl des entsprechenden Spiels aus, um damit zu starten.\nAm Ende eines Spiels kannst du mit der Taste 0 wieder zurueck zum Hauptmenue kommen.\nIm Hauptmenue beendest du mit der Auswahl 0 das Programm \n\n"); - scanf_s("%d", &selection); + scanf("%d", &selection); //todo @@ -55,11 +57,11 @@ void openInterface() startTicTacToe(); break; /*case(4): - //Spiel() - break; - case(5): //Spiel() break;*/ + case(5): + ASCII_Art(); + break; default: break; } diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c new file mode 100644 index 0000000..f435a6b --- /dev/null +++ b/src/test/c/Jason/test_ASCII_art.c @@ -0,0 +1,10 @@ +#include "unity.h" +#include "ASCII_art.h" + +void setup (void){ + +} + +void tearDown(void){ + +}