21 lines
508 B
C++
21 lines
508 B
C++
|
#include <iostream>
|
||
|
#include <vector>
|
||
|
#include "DiceGame.h"
|
||
|
#include "TriviaGame.h"
|
||
|
#include "simpleMenu.h"
|
||
|
|
||
|
int main() {
|
||
|
std::vector<std::string> menuOptions = {"Play Dice Game (blackjack but with dice)", "Play Trivia Game"};
|
||
|
int userChoice = simpleMenu(menuOptions, "What would you like to play?");
|
||
|
switch (userChoice) {
|
||
|
case 0:
|
||
|
DiceGame::diceGameLoop();
|
||
|
break;
|
||
|
case 1:
|
||
|
TriviaGame::triviaGameLoop();
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|