|
@ -2,54 +2,54 @@ |
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
#include <stdbool.h> |
|
|
#include <stdbool.h> |
|
|
|
|
|
|
|
|
#include "Hangman/playHangman.h" |
|
|
|
|
|
#include "Hangman/word_selector.h" |
|
|
|
|
|
#include "Hangman/drawHangman.h" |
|
|
|
|
|
#include "Hangman/initializeHangman.h" |
|
|
|
|
|
|
|
|
#include "Snake/snake_start.h" |
|
|
|
|
|
#include "Minesweeper/minesweeper_start.h" |
|
|
|
|
|
#include "Pong/pong.h" |
|
|
|
|
|
#include "playHangman.h" |
|
|
|
|
|
|
|
|
int main(){ |
|
|
int main(){ |
|
|
bool running = true; |
|
|
bool running = true; |
|
|
|
|
|
|
|
|
while (running){ |
|
|
while (running){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int option = 0; |
|
|
int option = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system("clear"); |
|
|
system("clear"); |
|
|
printf("Waehlen Sie eine Option:\n"); |
|
|
printf("Waehlen Sie eine Option:\n"); |
|
|
printf("\t1.Spiel1 starten\n"); |
|
|
|
|
|
printf("\t2.Spiel2 starten\n"); |
|
|
|
|
|
printf("\t3.Spiel3 starten\n"); |
|
|
|
|
|
|
|
|
printf("\t1.Hangman1 starten\n"); |
|
|
|
|
|
printf("\t2.Pong starten\n"); |
|
|
|
|
|
printf("\t3.Snake starten\n"); |
|
|
printf("\t4.Spiel4 starten\n"); |
|
|
printf("\t4.Spiel4 starten\n"); |
|
|
printf("\t100.Template starten\n"); |
|
|
|
|
|
printf("\t6.Exit\n"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("\t7.Minesweeper starten\n"); |
|
|
|
|
|
printf("\t10.Exit\n"); |
|
|
|
|
|
|
|
|
scanf("%d", &option); |
|
|
scanf("%d", &option); |
|
|
getchar(); |
|
|
getchar(); |
|
|
|
|
|
|
|
|
switch (option){ |
|
|
switch (option){ |
|
|
case 1: |
|
|
|
|
|
playHangman(selectRandomWord()); |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
//start_game2(); |
|
|
|
|
|
break; |
|
|
|
|
|
case 3: |
|
|
|
|
|
//start_game3(); |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
|
|
|
//start_game4(); |
|
|
|
|
|
break; |
|
|
|
|
|
case 100: |
|
|
|
|
|
//start_game100(); |
|
|
|
|
|
break; |
|
|
|
|
|
case 6: |
|
|
|
|
|
system("clear"); |
|
|
|
|
|
running = false; |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
case 1: |
|
|
|
|
|
playHangman(selectRandomWord()); |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
pong(); |
|
|
|
|
|
break; |
|
|
|
|
|
case 3: |
|
|
|
|
|
snake_start(); |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
|
|
|
//start_game4(); |
|
|
|
|
|
break; |
|
|
|
|
|
case 7: |
|
|
|
|
|
minesweeper_start(); |
|
|
|
|
|
break; |
|
|
|
|
|
case 10: |
|
|
|
|
|
system("clear"); |
|
|
|
|
|
running = false; |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
} |