Skip to content

Instantly share code, notes, and snippets.

@HybridEidolon
Last active December 30, 2015 23:18
Show Gist options
  • Save HybridEidolon/7899567 to your computer and use it in GitHub Desktop.
Save HybridEidolon/7899567 to your computer and use it in GitHub Desktop.
//TopGearTimeTravel by Andrew "Yeti" S.
//Respect to J3DI From Ludum Dare
#include <iostream>
#include <ctime>
#include <string>
#include <sstream>
using namespace std;
int main()
{
string answer = "tardis";
cout << "System: Welcome, Mr. Clarkson." << endl << endl;
cout << "System: Top Gear would like you to prepare for testing some Time Travel." << endl << endl;
cout << "System: Since this is high risk, you should take this short 'GOAT' test!" << endl << endl;
cout << "System: If you have any questions, then you can read the text file included." <<endl << endl;
cout << "System: Good Luck!" << endl<< endl;
cout << "Computer: Test Initializing.... Begin!" << endl << endl;
system("pause");
//Test Questions Here.
cout << "System.Question: You see a Police Call Box. What is it called?" << endl;
std::cin >> answer;
answer = toupper(answer);
if (answer.find("TARDIS") > 0){
cout << "System: Correct!" << endl;}
else{
cout << "System: Incorrect." << endl;}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment