diff --git a/README.md b/README.md index 1616d37..b449020 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +<<<<<<< HEAD +# Trivia_Challenge +A trivia Challenge game written in C++ +======= # Cpp_Lab_03 convert the tic tac toe game @@ -10,3 +14,4 @@ name your project: #Lab3_1 +>>>>>>> d715551b9ed5b8a5aeb15dcefb1708f975b21956 diff --git a/TriviaChalleng/Debug/TriviaChallenge.exe b/TriviaChalleng/Debug/TriviaChallenge.exe new file mode 100644 index 0000000..dc17b93 Binary files /dev/null and b/TriviaChalleng/Debug/TriviaChallenge.exe differ diff --git a/TriviaChalleng/Debug/TriviaChallenge.ilk b/TriviaChalleng/Debug/TriviaChallenge.ilk new file mode 100644 index 0000000..1b8a932 Binary files /dev/null and b/TriviaChalleng/Debug/TriviaChallenge.ilk differ diff --git a/TriviaChalleng/Debug/TriviaChallenge.pdb b/TriviaChalleng/Debug/TriviaChallenge.pdb new file mode 100644 index 0000000..569f562 Binary files /dev/null and b/TriviaChalleng/Debug/TriviaChallenge.pdb differ diff --git a/TriviaChalleng/TriviaChallenge.sdf b/TriviaChalleng/TriviaChallenge.sdf new file mode 100644 index 0000000..fd193ae Binary files /dev/null and b/TriviaChalleng/TriviaChallenge.sdf differ diff --git a/TriviaChalleng/TriviaChallenge.sln b/TriviaChalleng/TriviaChallenge.sln new file mode 100644 index 0000000..1d0dc8f --- /dev/null +++ b/TriviaChalleng/TriviaChallenge.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TriviaChallenge", "TriviaChallenge\TriviaChallenge.vcxproj", "{69B67E0C-E0AD-434B-B9D1-0F24B0261941}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {69B67E0C-E0AD-434B-B9D1-0F24B0261941}.Debug|Win32.ActiveCfg = Debug|Win32 + {69B67E0C-E0AD-434B-B9D1-0F24B0261941}.Debug|Win32.Build.0 = Debug|Win32 + {69B67E0C-E0AD-434B-B9D1-0F24B0261941}.Release|Win32.ActiveCfg = Release|Win32 + {69B67E0C-E0AD-434B-B9D1-0F24B0261941}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/TriviaChalleng/TriviaChallenge.v12.suo b/TriviaChalleng/TriviaChallenge.v12.suo new file mode 100644 index 0000000..0c8280b Binary files /dev/null and b/TriviaChalleng/TriviaChallenge.v12.suo differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.log b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.log new file mode 100644 index 0000000..47cae80 --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.log @@ -0,0 +1,14 @@ +Build started 1/30/2015 3:02:18 AM. +Project "C:\Users\IEUser\Documents\Labs\TriviaChallenge\TriviaChallenge\TriviaChallenge.vcxproj" on node 2 (Build target(s)). +ClCompile: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\TriviaChallenge.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt TriviaChallenge.cpp + TriviaChallenge.cpp +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Documents\Labs\TriviaChallenge\Debug\TriviaChallenge.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\IEUser\Documents\Labs\TriviaChallenge\Debug\TriviaChallenge.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Documents\Labs\TriviaChallenge\Debug\TriviaChallenge.lib" /MACHINE:X86 Debug\stdafx.obj + Debug\TriviaChallenge.obj + TriviaChallenge.vcxproj -> C:\Users\IEUser\Documents\Labs\TriviaChallenge\Debug\TriviaChallenge.exe +Done Building Project "C:\Users\IEUser\Documents\Labs\TriviaChallenge\TriviaChallenge\TriviaChallenge.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:00.61 diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.obj b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.obj new file mode 100644 index 0000000..a395601 Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.obj differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.pch b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.pch new file mode 100644 index 0000000..a2c2507 Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.pch differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.read.1.tlog b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.read.1.tlog new file mode 100644 index 0000000..038829e Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.read.1.tlog differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.write.1.tlog b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8895b0d Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.write.1.tlog differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/TriviaChallenge.lastbuildstate b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/TriviaChallenge.lastbuildstate new file mode 100644 index 0000000..6315b9f --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/TriviaChallenge.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Documents\Labs\TriviaChallenge\| diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/cl.command.1.tlog b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/cl.command.1.tlog new file mode 100644 index 0000000..d3f7387 Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/cl.command.1.tlog differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.command.1.tlog b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.command.1.tlog new file mode 100644 index 0000000..fa302f0 Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.command.1.tlog differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.read.1.tlog b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.read.1.tlog new file mode 100644 index 0000000..89b6fb3 Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.read.1.tlog differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.write.1.tlog b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.write.1.tlog new file mode 100644 index 0000000..5a8d43c Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/TriviaChallenge.tlog/link.write.1.tlog differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/stdafx.obj b/TriviaChalleng/TriviaChallenge/Debug/stdafx.obj new file mode 100644 index 0000000..4dc4bad Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/stdafx.obj differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/vc120.idb b/TriviaChalleng/TriviaChallenge/Debug/vc120.idb new file mode 100644 index 0000000..5eb1ecb Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/vc120.idb differ diff --git a/TriviaChalleng/TriviaChallenge/Debug/vc120.pdb b/TriviaChalleng/TriviaChallenge/Debug/vc120.pdb new file mode 100644 index 0000000..fa532e6 Binary files /dev/null and b/TriviaChalleng/TriviaChallenge/Debug/vc120.pdb differ diff --git a/TriviaChalleng/TriviaChallenge/ReadMe.txt b/TriviaChalleng/TriviaChallenge/ReadMe.txt new file mode 100644 index 0000000..0634959 --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : TriviaChallenge Project Overview +======================================================================== + +AppWizard has created this TriviaChallenge application for you. + +This file contains a summary of what you will find in each of the files that +make up your TriviaChallenge application. + + +TriviaChallenge.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +TriviaChallenge.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +TriviaChallenge.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named TriviaChallenge.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/TriviaChalleng/TriviaChallenge/TriviaChallenge.cpp b/TriviaChalleng/TriviaChallenge/TriviaChallenge.cpp new file mode 100644 index 0000000..804cb78 --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/TriviaChallenge.cpp @@ -0,0 +1,104 @@ +// TriviaChallenge.cpp : A Trivia Challenge using arrays. +// + +#include "stdafx.h" +#include +#include +#include +#include +#include +using namespace std; + +const int rows = 14; +const int columns = 2; +int board[rows][columns] = { 0, 0 }; + +void displayBoard(); + + +int main() +{ + displayBoard(); + + /*The number for go first indicates the player that goes first.*/ + int goFirst = 0; + /*Simulates a dice roll.*/ + int roll = rand() % 6 + 1; + char player1 = '1'; + char player2 = '2'; + /*This is the gameboard.*/ + char gameboard[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; + cout << endl << endl << "This is a trivia challenge for two people!" << endl; + getchar(); + cin.ignore(); + cout << endl; + + return 0; +} + +void Turn(int roll(), int player1Roll = rand() % 6 + 1, int player2Roll = rand() % 6 + 1, int goFirst = 0) +{ + cout << roll << endl; + while (goFirst != 1 || 2){ + + if (player1Roll > player2Roll) + { + int goFirst = 1; + } + else if (player1Roll < player2Roll) + { + int goFirst = 2; + } + else + { + int player1Roll = rand() % 6 + 1; + int player2Roll = rand() % 6 + 1; + } + return; + } +} + void displayBoard() + { + + cout << " 1 2" << endl; + cout << " -----"; + + for (int bRow = 0; bRow<14; bRow++) + { + cout << "\n "; + for (int bCol = 0; bCol< 2; bCol++) + + if (board[bRow][bCol] == 0) + cout << ". "; + else + cout << ". "; + } + cout << endl; + + return; + } + void Movement(int roll(), char bRow()) + { + srand(time(NULL)); + int spot = 0; + while (spot != 14) + { + int roll = rand() % 6 + 1; + for (int bRow = 0; bRow<14; bRow++) + { + cout << "\n "; + for (int bCol = 0; bCol< 2; bCol++) + + if (board[bRow][bCol] == 0) + cout << ". "; + else + cout << ". "; + } + cout << endl; + + return; + } + } + + + } \ No newline at end of file diff --git a/TriviaChalleng/TriviaChallenge/TriviaChallenge.vcxproj b/TriviaChalleng/TriviaChallenge/TriviaChallenge.vcxproj new file mode 100644 index 0000000..ff65cb8 --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/TriviaChallenge.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {69B67E0C-E0AD-434B-B9D1-0F24B0261941} + Win32Proj + TriviaChallenge + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + Create + Create + + + + + + + \ No newline at end of file diff --git a/TriviaChalleng/TriviaChallenge/TriviaChallenge.vcxproj.filters b/TriviaChalleng/TriviaChallenge/TriviaChallenge.vcxproj.filters new file mode 100644 index 0000000..8102f00 --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/TriviaChallenge.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/TriviaChalleng/TriviaChallenge/stdafx.cpp b/TriviaChalleng/TriviaChallenge/stdafx.cpp new file mode 100644 index 0000000..b806e19 --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// TriviaChallenge.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/TriviaChalleng/TriviaChallenge/stdafx.h b/TriviaChalleng/TriviaChallenge/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/TriviaChalleng/TriviaChallenge/targetver.h b/TriviaChalleng/TriviaChallenge/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/TriviaChalleng/TriviaChallenge/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include diff --git a/TriviaChalleng/ipch/triviachallenge-e3e856a4/triviachallenge-8a34a27e.ipch b/TriviaChalleng/ipch/triviachallenge-e3e856a4/triviachallenge-8a34a27e.ipch new file mode 100644 index 0000000..713b601 Binary files /dev/null and b/TriviaChalleng/ipch/triviachallenge-e3e856a4/triviachallenge-8a34a27e.ipch differ diff --git a/TriviaChallenge/Debug/TriviaChallenge.exe b/TriviaChallenge/Debug/TriviaChallenge.exe new file mode 100644 index 0000000..dc17b93 Binary files /dev/null and b/TriviaChallenge/Debug/TriviaChallenge.exe differ diff --git a/TriviaChallenge/Debug/TriviaChallenge.ilk b/TriviaChallenge/Debug/TriviaChallenge.ilk new file mode 100644 index 0000000..1b8a932 Binary files /dev/null and b/TriviaChallenge/Debug/TriviaChallenge.ilk differ diff --git a/TriviaChallenge/Debug/TriviaChallenge.pdb b/TriviaChallenge/Debug/TriviaChallenge.pdb new file mode 100644 index 0000000..569f562 Binary files /dev/null and b/TriviaChallenge/Debug/TriviaChallenge.pdb differ diff --git a/TriviaChallenge/TriviaChallenge.sdf b/TriviaChallenge/TriviaChallenge.sdf new file mode 100644 index 0000000..fd193ae Binary files /dev/null and b/TriviaChallenge/TriviaChallenge.sdf differ diff --git a/TriviaChallenge/TriviaChallenge.sln b/TriviaChallenge/TriviaChallenge.sln new file mode 100644 index 0000000..1d0dc8f --- /dev/null +++ b/TriviaChallenge/TriviaChallenge.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TriviaChallenge", "TriviaChallenge\TriviaChallenge.vcxproj", "{69B67E0C-E0AD-434B-B9D1-0F24B0261941}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {69B67E0C-E0AD-434B-B9D1-0F24B0261941}.Debug|Win32.ActiveCfg = Debug|Win32 + {69B67E0C-E0AD-434B-B9D1-0F24B0261941}.Debug|Win32.Build.0 = Debug|Win32 + {69B67E0C-E0AD-434B-B9D1-0F24B0261941}.Release|Win32.ActiveCfg = Release|Win32 + {69B67E0C-E0AD-434B-B9D1-0F24B0261941}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/TriviaChallenge/TriviaChallenge.v12.suo b/TriviaChallenge/TriviaChallenge.v12.suo new file mode 100644 index 0000000..0c8280b Binary files /dev/null and b/TriviaChallenge/TriviaChallenge.v12.suo differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.log b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.log new file mode 100644 index 0000000..47cae80 --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.log @@ -0,0 +1,14 @@ +Build started 1/30/2015 3:02:18 AM. +Project "C:\Users\IEUser\Documents\Labs\TriviaChallenge\TriviaChallenge\TriviaChallenge.vcxproj" on node 2 (Build target(s)). +ClCompile: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\TriviaChallenge.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt TriviaChallenge.cpp + TriviaChallenge.cpp +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Documents\Labs\TriviaChallenge\Debug\TriviaChallenge.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\IEUser\Documents\Labs\TriviaChallenge\Debug\TriviaChallenge.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Documents\Labs\TriviaChallenge\Debug\TriviaChallenge.lib" /MACHINE:X86 Debug\stdafx.obj + Debug\TriviaChallenge.obj + TriviaChallenge.vcxproj -> C:\Users\IEUser\Documents\Labs\TriviaChallenge\Debug\TriviaChallenge.exe +Done Building Project "C:\Users\IEUser\Documents\Labs\TriviaChallenge\TriviaChallenge\TriviaChallenge.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:00.61 diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.obj b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.obj new file mode 100644 index 0000000..a395601 Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.obj differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.pch b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.pch new file mode 100644 index 0000000..a2c2507 Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.pch differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.read.1.tlog b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.read.1.tlog new file mode 100644 index 0000000..038829e Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.read.1.tlog differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.write.1.tlog b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8895b0d Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/CL.write.1.tlog differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/TriviaChallenge.lastbuildstate b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/TriviaChallenge.lastbuildstate new file mode 100644 index 0000000..6315b9f --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/TriviaChallenge.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Documents\Labs\TriviaChallenge\| diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/cl.command.1.tlog b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/cl.command.1.tlog new file mode 100644 index 0000000..d3f7387 Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/cl.command.1.tlog differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.command.1.tlog b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.command.1.tlog new file mode 100644 index 0000000..fa302f0 Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.command.1.tlog differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.read.1.tlog b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.read.1.tlog new file mode 100644 index 0000000..89b6fb3 Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.read.1.tlog differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.write.1.tlog b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.write.1.tlog new file mode 100644 index 0000000..5a8d43c Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/TriviaChallenge.tlog/link.write.1.tlog differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/stdafx.obj b/TriviaChallenge/TriviaChallenge/Debug/stdafx.obj new file mode 100644 index 0000000..4dc4bad Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/stdafx.obj differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/vc120.idb b/TriviaChallenge/TriviaChallenge/Debug/vc120.idb new file mode 100644 index 0000000..5eb1ecb Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/vc120.idb differ diff --git a/TriviaChallenge/TriviaChallenge/Debug/vc120.pdb b/TriviaChallenge/TriviaChallenge/Debug/vc120.pdb new file mode 100644 index 0000000..fa532e6 Binary files /dev/null and b/TriviaChallenge/TriviaChallenge/Debug/vc120.pdb differ diff --git a/TriviaChallenge/TriviaChallenge/ReadMe.txt b/TriviaChallenge/TriviaChallenge/ReadMe.txt new file mode 100644 index 0000000..0634959 --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : TriviaChallenge Project Overview +======================================================================== + +AppWizard has created this TriviaChallenge application for you. + +This file contains a summary of what you will find in each of the files that +make up your TriviaChallenge application. + + +TriviaChallenge.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +TriviaChallenge.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +TriviaChallenge.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named TriviaChallenge.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/TriviaChallenge/TriviaChallenge/TriviaChallenge.cpp b/TriviaChallenge/TriviaChallenge/TriviaChallenge.cpp new file mode 100644 index 0000000..50a0fc2 --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/TriviaChallenge.cpp @@ -0,0 +1,104 @@ +// TriviaChallenge.cpp : A Trivia Challenge using arrays. +//Matt Jones Andrew Rotton + +#include "stdafx.h" +#include +#include +#include +#include +#include +using namespace std; + +const int rows = 14; +const int columns = 2; +int board[rows][columns] = { 0, 0 }; + +void displayBoard(); + + +int main() +{ + displayBoard(); + + /*The number for go first indicates the player that goes first.*/ + int goFirst = 0; + /*Simulates a dice roll.*/ + int roll = rand() % 6 + 1; + char player1 = '1'; + char player2 = '2'; + /*This is the gameboard.*/ + char gameboard[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; + cout << endl << endl << "This is a trivia challenge for two people!" << endl; + getchar(); + cin.ignore(); + cout << endl; + + return 0; +} + +void Turn(int roll(), int player1Roll = rand() % 6 + 1, int player2Roll = rand() % 6 + 1, int goFirst = 0) +{ + cout << roll << endl; + while (goFirst != 1 || 2){ + + if (player1Roll > player2Roll) + { + int goFirst = 1; + } + else if (player1Roll < player2Roll) + { + int goFirst = 2; + } + else + { + int player1Roll = rand() % 6 + 1; + int player2Roll = rand() % 6 + 1; + } + return; + } +} + void displayBoard() + { + + cout << " 1 2" << endl; + cout << " -----"; + + for (int bRow = 0; bRow<14; bRow++) + { + cout << "\n "; + for (int bCol = 0; bCol< 2; bCol++) + + if (board[bRow][bCol] == 0) + cout << ". "; + else + cout << ". "; + } + cout << endl; + + return; + } + void Movement(int roll(), char bRow()) + { + srand(time(NULL)); + int spot = 0; + while (spot != 14) + { + int roll = rand() % 6 + 1; + for (int bRow = 0; bRow<14; bRow++) + { + cout << "\n "; + for (int bCol = 0; bCol< 2; bCol++) + + if (board[bRow][bCol] == 0) + cout << ". "; + else + cout << ". "; + } + cout << endl; + + return; + } + } + + + } \ No newline at end of file diff --git a/TriviaChallenge/TriviaChallenge/TriviaChallenge.vcxproj b/TriviaChallenge/TriviaChallenge/TriviaChallenge.vcxproj new file mode 100644 index 0000000..ff65cb8 --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/TriviaChallenge.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {69B67E0C-E0AD-434B-B9D1-0F24B0261941} + Win32Proj + TriviaChallenge + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + Create + Create + + + + + + + \ No newline at end of file diff --git a/TriviaChallenge/TriviaChallenge/TriviaChallenge.vcxproj.filters b/TriviaChallenge/TriviaChallenge/TriviaChallenge.vcxproj.filters new file mode 100644 index 0000000..8102f00 --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/TriviaChallenge.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/TriviaChallenge/TriviaChallenge/stdafx.cpp b/TriviaChallenge/TriviaChallenge/stdafx.cpp new file mode 100644 index 0000000..b806e19 --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// TriviaChallenge.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/TriviaChallenge/TriviaChallenge/stdafx.h b/TriviaChallenge/TriviaChallenge/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/TriviaChallenge/TriviaChallenge/targetver.h b/TriviaChallenge/TriviaChallenge/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/TriviaChallenge/TriviaChallenge/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include diff --git a/TriviaChallenge/ipch/triviachallenge-e3e856a4/triviachallenge-8a34a27e.ipch b/TriviaChallenge/ipch/triviachallenge-e3e856a4/triviachallenge-8a34a27e.ipch new file mode 100644 index 0000000..713b601 Binary files /dev/null and b/TriviaChallenge/ipch/triviachallenge-e3e856a4/triviachallenge-8a34a27e.ipch differ diff --git a/dd51/Debug/dd51.exe b/dd51/Debug/dd51.exe new file mode 100644 index 0000000..413b12b Binary files /dev/null and b/dd51/Debug/dd51.exe differ diff --git a/dd51/Debug/dd51.ilk b/dd51/Debug/dd51.ilk new file mode 100644 index 0000000..344665a Binary files /dev/null and b/dd51/Debug/dd51.ilk differ diff --git a/dd51/Debug/dd51.pdb b/dd51/Debug/dd51.pdb new file mode 100644 index 0000000..27c3d83 Binary files /dev/null and b/dd51/Debug/dd51.pdb differ diff --git a/dd51/dd51.opensdf b/dd51/dd51.opensdf new file mode 100644 index 0000000..35e1093 Binary files /dev/null and b/dd51/dd51.opensdf differ diff --git a/dd51/dd51.sdf b/dd51/dd51.sdf new file mode 100644 index 0000000..26df1e1 Binary files /dev/null and b/dd51/dd51.sdf differ diff --git a/dd51/dd51.sln b/dd51/dd51.sln new file mode 100644 index 0000000..31f8805 --- /dev/null +++ b/dd51/dd51.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dd51", "dd51\dd51.vcxproj", "{4A764AD7-FBDF-425A-B298-19C8B7B1ED4A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4A764AD7-FBDF-425A-B298-19C8B7B1ED4A}.Debug|Win32.ActiveCfg = Debug|Win32 + {4A764AD7-FBDF-425A-B298-19C8B7B1ED4A}.Debug|Win32.Build.0 = Debug|Win32 + {4A764AD7-FBDF-425A-B298-19C8B7B1ED4A}.Release|Win32.ActiveCfg = Release|Win32 + {4A764AD7-FBDF-425A-B298-19C8B7B1ED4A}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/dd51/dd51.v12.suo b/dd51/dd51.v12.suo new file mode 100644 index 0000000..c03dad8 Binary files /dev/null and b/dd51/dd51.v12.suo differ diff --git a/dd51/dd51/Debug/dd51.log b/dd51/dd51/Debug/dd51.log new file mode 100644 index 0000000..f9ded2f --- /dev/null +++ b/dd51/dd51/Debug/dd51.log @@ -0,0 +1,15 @@ +Build started 2/2/2015 6:31:27 AM. +Project "C:\Users\IEUser\Documents\Visual Studio 2013\Projects\dd51\dd51\dd51.vcxproj" on node 2 (Build target(s)). +ClCompile: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\dd51.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt dd51.cpp + dd51.cpp +c:\users\ieuser\documents\visual studio 2013\projects\dd51\dd51\dd51.cpp(68): warning C4129: 'W' : unrecognized character escape sequence +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\dd51\Debug\dd51.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\dd51\Debug\dd51.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\dd51\Debug\dd51.lib" /MACHINE:X86 Debug\dd51.obj + Debug\stdafx.obj + dd51.vcxproj -> C:\Users\IEUser\Documents\Visual Studio 2013\Projects\dd51\Debug\dd51.exe +Done Building Project "C:\Users\IEUser\Documents\Visual Studio 2013\Projects\dd51\dd51\dd51.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.06 diff --git a/dd51/dd51/Debug/dd51.obj b/dd51/dd51/Debug/dd51.obj new file mode 100644 index 0000000..914052b Binary files /dev/null and b/dd51/dd51/Debug/dd51.obj differ diff --git a/dd51/dd51/Debug/dd51.pch b/dd51/dd51/Debug/dd51.pch new file mode 100644 index 0000000..be7f529 Binary files /dev/null and b/dd51/dd51/Debug/dd51.pch differ diff --git a/dd51/dd51/Debug/dd51.tlog/CL.read.1.tlog b/dd51/dd51/Debug/dd51.tlog/CL.read.1.tlog new file mode 100644 index 0000000..d96a144 Binary files /dev/null and b/dd51/dd51/Debug/dd51.tlog/CL.read.1.tlog differ diff --git a/dd51/dd51/Debug/dd51.tlog/CL.write.1.tlog b/dd51/dd51/Debug/dd51.tlog/CL.write.1.tlog new file mode 100644 index 0000000..56349b6 Binary files /dev/null and b/dd51/dd51/Debug/dd51.tlog/CL.write.1.tlog differ diff --git a/dd51/dd51/Debug/dd51.tlog/cl.command.1.tlog b/dd51/dd51/Debug/dd51.tlog/cl.command.1.tlog new file mode 100644 index 0000000..e6f98a9 Binary files /dev/null and b/dd51/dd51/Debug/dd51.tlog/cl.command.1.tlog differ diff --git a/dd51/dd51/Debug/dd51.tlog/dd51.lastbuildstate b/dd51/dd51/Debug/dd51.tlog/dd51.lastbuildstate new file mode 100644 index 0000000..5371844 --- /dev/null +++ b/dd51/dd51/Debug/dd51.tlog/dd51.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Documents\Visual Studio 2013\Projects\dd51\| diff --git a/dd51/dd51/Debug/dd51.tlog/link.command.1.tlog b/dd51/dd51/Debug/dd51.tlog/link.command.1.tlog new file mode 100644 index 0000000..b3c5714 Binary files /dev/null and b/dd51/dd51/Debug/dd51.tlog/link.command.1.tlog differ diff --git a/dd51/dd51/Debug/dd51.tlog/link.read.1.tlog b/dd51/dd51/Debug/dd51.tlog/link.read.1.tlog new file mode 100644 index 0000000..d1f298d Binary files /dev/null and b/dd51/dd51/Debug/dd51.tlog/link.read.1.tlog differ diff --git a/dd51/dd51/Debug/dd51.tlog/link.write.1.tlog b/dd51/dd51/Debug/dd51.tlog/link.write.1.tlog new file mode 100644 index 0000000..d34c66e Binary files /dev/null and b/dd51/dd51/Debug/dd51.tlog/link.write.1.tlog differ diff --git a/dd51/dd51/Debug/stdafx.obj b/dd51/dd51/Debug/stdafx.obj new file mode 100644 index 0000000..af5d633 Binary files /dev/null and b/dd51/dd51/Debug/stdafx.obj differ diff --git a/dd51/dd51/Debug/vc120.idb b/dd51/dd51/Debug/vc120.idb new file mode 100644 index 0000000..6bf6817 Binary files /dev/null and b/dd51/dd51/Debug/vc120.idb differ diff --git a/dd51/dd51/Debug/vc120.pdb b/dd51/dd51/Debug/vc120.pdb new file mode 100644 index 0000000..18b961b Binary files /dev/null and b/dd51/dd51/Debug/vc120.pdb differ diff --git a/dd51/dd51/ReadMe.txt b/dd51/dd51/ReadMe.txt new file mode 100644 index 0000000..da3e3cc --- /dev/null +++ b/dd51/dd51/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : dd51 Project Overview +======================================================================== + +AppWizard has created this dd51 application for you. + +This file contains a summary of what you will find in each of the files that +make up your dd51 application. + + +dd51.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +dd51.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +dd51.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named dd51.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/dd51/dd51/dd51.cpp b/dd51/dd51/dd51.cpp new file mode 100644 index 0000000..2532e89 --- /dev/null +++ b/dd51/dd51/dd51.cpp @@ -0,0 +1,86 @@ + + /* + + Jacob steiner and Nate Rowe + 2/2/15 + dd51 + + 6 question Trivia game */ + +#include "stdafx.h" +#include +#include +using namespace std; +void player2(char play2[6]); +void player1(char play1[6]); +void display_board(char play1[6], char play2[6]); +void ask(); +void ask2(); +int number1; +int number2; +int main() +{ + + cout << "Welcome to trivia, enter the answer accordingly\n\n"; + while (number1 || number2 < 6){ + char playing1[7]; + char playing2[7]; + player1(playing1); + player2(playing2); + display_board(playing1, playing2); + ask(); + ask2(); + + } + cout << "Congrats winner"; + getchar(); + getchar(); +} + +void player1(char play1[7]){ + for (int i = 0; i < 7; i++){ + play1[i] = ' '; + play1[number1] = '1'; + + } +} +void player2(char play2[7]){ + for (int i = 0; i < 7; i++){ + play2[i] = ' '; + play2[number2] = '2'; + + } +} + +void display_board(char play1[7], char play2[7]){ + cout << play1[0] << play1[1] << play1[2] << play1[3] << play1[4] << play1[5] << play1[6] <> guess; + if (guess == answers[number1]){ + number1++; + } +} + +void ask2() +{ + string questions[6] = { "what country is samsung from\n", "who is the 1st president\n", "what is Nate's last name\n", "what company owns dr.pepper\n", "what makes kowalas sleepy\n", "who inveted the light bulb\n" }; + string answers[6] = { "Japan", "Washington", "Rowe", "Coke", "Leaves", "Thomas" }; + cout << questions[number2]; + string guess; + cout << "\n\n\n\n\n\nWhat is the answer?\n\n "; + cin >> guess; + if (guess == answers[number2]){ + number2++; + } +} \ No newline at end of file diff --git a/dd51/dd51/dd51.vcxproj b/dd51/dd51/dd51.vcxproj new file mode 100644 index 0000000..b601ff4 --- /dev/null +++ b/dd51/dd51/dd51.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {4A764AD7-FBDF-425A-B298-19C8B7B1ED4A} + Win32Proj + dd51 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + Create + Create + + + + + + \ No newline at end of file diff --git a/dd51/dd51/dd51.vcxproj.filters b/dd51/dd51/dd51.vcxproj.filters new file mode 100644 index 0000000..4d7a7ae --- /dev/null +++ b/dd51/dd51/dd51.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/dd51/dd51/stdafx.cpp b/dd51/dd51/stdafx.cpp new file mode 100644 index 0000000..33baf8f --- /dev/null +++ b/dd51/dd51/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// dd51.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/dd51/dd51/stdafx.h b/dd51/dd51/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/dd51/dd51/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/dd51/dd51/targetver.h b/dd51/dd51/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/dd51/dd51/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include diff --git a/dd51/ipch/dd51-3ffca2e/dd51-7dc0f99a.ipch b/dd51/ipch/dd51-3ffca2e/dd51-7dc0f99a.ipch new file mode 100644 index 0000000..11449f3 Binary files /dev/null and b/dd51/ipch/dd51-3ffca2e/dd51-7dc0f99a.ipch differ