Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
100 changed files
with
1,748 additions
and
0 deletions.
There are no files selected for viewing
BIN
+783 KB
Chat server.ilk
Binary file not shown.
BIN
+1020 KB
Chat server.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
\\mac\home\documents\github\pineapplepen\debug\vc140.pdb | ||
\\mac\home\documents\github\pineapplepen\debug\vc140.idb | ||
\\mac\home\documents\github\pineapplepen\debug\alphabet.obj | ||
\\mac\home\documents\github\pineapplepen\debug\countdown.obj | ||
\\mac\home\documents\github\pineapplepen\debug\gymmenu.obj | ||
\\mac\home\documents\github\pineapplepen\debug\inventory.obj | ||
\\mac\home\documents\github\pineapplepen\debug\jobmenu.obj | ||
\\mac\home\documents\github\pineapplepen\debug\jumble.obj | ||
\\mac\home\documents\github\pineapplepen\debug\librarymenu.obj | ||
\\mac\home\documents\github\pineapplepen\debug\main.obj | ||
\\mac\home\documents\github\pineapplepen\debug\mainmenu.obj | ||
\\mac\home\documents\github\pineapplepen\debug\memorygame.obj | ||
\\mac\home\documents\github\pineapplepen\debug\player.obj | ||
\\mac\home\documents\github\pineapplepen\debug\playermenu.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\vc142.pdb | ||
c:\users\barim3\desktop\pineapplepen\debug\vc142.idb | ||
c:\users\barim3\desktop\pineapplepen\debug\player.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\playermenu.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\memorygame.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\mainmenu.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\main.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\librarymenu.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\jumble.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\jobmenu.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\inventory.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\gymmenu.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\countdown.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\check.obj | ||
c:\users\barim3\desktop\pineapplepen\debug\alphabet.obj | ||
\\mac\home\documents\github\pineapplepen\debug\project2.pdb | ||
c:\users\barim3\desktop\pineapplepen\debug\vc140.idb | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.pdb | ||
c:\users\barim3\desktop\pineapplepen\debug\vc140.pdb | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\cl.command.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\cl.read.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\cl.write.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\link-cvtres.read.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\link-cvtres.write.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\link-rc.read.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\link-rc.write.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\link.command.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\link.read.1.tlog | ||
c:\users\barim3\desktop\pineapplepen\debug\project2.tlog\link.write.1.tlog |
BIN
+224 KB
Debug/Project2.exe
Binary file not shown.
BIN
+1.23 MB
Debug/Project2.ilk
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
main.cpp | ||
\\Mac\Home\Documents\GitHub\PineapplePen\room.h(42,12): warning C4129: '/': unrecognized character escape sequence | ||
\\Mac\Home\Documents\GitHub\PineapplePen\room.h(44,12): warning C4129: '_': unrecognized character escape sequence | ||
Project2.vcxproj -> \\Mac\Home\Documents\GitHub\PineapplePen\Debug\Project2.exe |
BIN
+1.2 MB
Debug/Project2.pdb
Binary file not shown.
BIN
+23.8 KB
Debug/Project2.tlog/CL.command.1.tlog
Binary file not shown.
BIN
+438 KB
Debug/Project2.tlog/CL.read.1.tlog
Binary file not shown.
BIN
+6.2 KB
Debug/Project2.tlog/CL.write.1.tlog
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#TargetFrameworkVersion=v4.0:PlatformToolSet=v142:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0 | ||
Debug|Win32|\\Mac\Home\Documents\GitHub\PineapplePen\| |
BIN
+11.9 KB
Debug/Project2.tlog/link.command.1.tlog
Binary file not shown.
BIN
+6.02 KB
Debug/Project2.tlog/link.read.1.tlog
Binary file not shown.
BIN
+3.46 KB
Debug/Project2.tlog/link.write.1.tlog
Binary file not shown.
BIN
+2.39 KB
Debug/Source.obj
Binary file not shown.
BIN
+280 KB
Debug/alphabet.obj
Binary file not shown.
BIN
+845 Bytes
Debug/check.obj
Binary file not shown.
BIN
+207 KB
Debug/countdown.obj
Binary file not shown.
BIN
+147 KB
Debug/gymmenu.obj
Binary file not shown.
BIN
+507 KB
Debug/inventory.obj
Binary file not shown.
BIN
+72.1 KB
Debug/jobmenu.obj
Binary file not shown.
BIN
+277 KB
Debug/jumble.obj
Binary file not shown.
BIN
+184 KB
Debug/librarymenu.obj
Binary file not shown.
BIN
+428 KB
Debug/main.obj
Binary file not shown.
BIN
+77.3 KB
Debug/mainmenu.obj
Binary file not shown.
BIN
+185 KB
Debug/memorygame.obj
Binary file not shown.
BIN
+327 KB
Debug/player.obj
Binary file not shown.
BIN
+156 KB
Debug/playermenu.obj
Binary file not shown.
BIN
+2.4 KB
Debug/spacebar.obj
Binary file not shown.
BIN
+826 KB
Debug/sqlite3.dll
Binary file not shown.
BIN
+20 KB
Debug/stats.db
Binary file not shown.
BIN
+49.7 KB
Debug/table1.obj
Binary file not shown.
BIN
+1.96 MB
Debug/vc140.idb
Binary file not shown.
BIN
+684 KB
Debug/vc140.pdb
Binary file not shown.
BIN
+731 KB
Debug/vc142.idb
Binary file not shown.
BIN
+1.21 MB
Debug/vc142.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#include "alphabet.h" | ||
using namespace std; | ||
|
||
const int alpha_max = 26; | ||
string answer; | ||
|
||
void sortstring(string &str) | ||
{ | ||
int charCount[alpha_max] = { 0 }; | ||
|
||
for (int index = 0;index < str.length();index++) | ||
|
||
charCount[str[index] - 'a']++; | ||
|
||
for (int index = 0;index < alpha_max;index++) | ||
for (int j = 0;j < charCount[index];j++) | ||
{ | ||
char c = ('a' + index); | ||
answer += c; | ||
} | ||
} | ||
|
||
void Alphabet :: random_word() | ||
{ | ||
cout << "To earn money type the letters of the following word in alphabetical order: " << endl; | ||
string word_list[] = | ||
{ "confinement", | ||
"penitentiary", | ||
"reformatory", | ||
"guardhouse", | ||
"punishment", | ||
"conviction", | ||
"imprisonment", | ||
"incarceration", | ||
"sentencing", | ||
"criminology" }; | ||
|
||
int word_index = rand() % 11; | ||
string word = word_list[word_index]; | ||
cout << word << endl; | ||
sortstring(word); | ||
} | ||
|
||
|
||
void check(string &userin) | ||
{ | ||
JobMenu j; | ||
PlayerMenu playermenu; | ||
Sql sql; | ||
if (answer == userin) | ||
{ | ||
cout << "Well done! You have completed all of the laundry. 5 pounds has been added to your account." << endl; | ||
sql.updateBalanceCleaningTable(); | ||
Sleep(2000); | ||
|
||
playermenu.ppmenu(); | ||
} | ||
else if (answer != userin) | ||
{ | ||
cout << "Oh no! You have turned all of your inmates clothes pink! This will be deducted from your wages." << endl; | ||
j.jobmenu(); | ||
} | ||
} | ||
void Alphabet :: user_input() | ||
{ | ||
string userin; | ||
cout << "Write the letters of this word in alphabetical order:" << endl;; | ||
cin >> userin; | ||
check(userin); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef ALPHABET_H | ||
#define ALPHABET_H | ||
|
||
#include <iostream> | ||
#include <conio.h> | ||
#include <string> | ||
|
||
|
||
#include "jobmenu.h" | ||
#include "playermenu.h" | ||
#include "player.h" | ||
|
||
using namespace std; | ||
|
||
class Alphabet | ||
{ | ||
public: | ||
Alphabet() | ||
{ | ||
|
||
} | ||
void random_word(); | ||
void user_input(); | ||
}; | ||
|
||
|
||
#endif |
BIN
+116 KB
chatserver.exe
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|Win32"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|Win32"> | ||
<Configuration>Release</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>{33EDC9A8-2ECC-4696-8EDA-4E2F6CE1E2B8}</ProjectGuid> | ||
<RootNamespace>BarebonesServer</RootNamespace> | ||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | ||
<ProjectName>Chat server</ProjectName> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="Shared"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup /> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>Disabled</Optimization> | ||
<SDLCheck>true</SDLCheck> | ||
</ClCompile> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>Disabled</Optimization> | ||
<SDLCheck>true</SDLCheck> | ||
</ClCompile> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
</ClCompile> | ||
<Link> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
</ClCompile> | ||
<Link> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClCompile Include="main.cpp" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<Filter Include="Source Files"> | ||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> | ||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> | ||
</Filter> | ||
<Filter Include="Header Files"> | ||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> | ||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions> | ||
</Filter> | ||
<Filter Include="Resource Files"> | ||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> | ||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> | ||
</Filter> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="main.cpp"> | ||
<Filter>Source Files</Filter> | ||
</ClCompile> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(459,5): warning MSB8028: The intermediate directory (Debug\) contains files shared from another project (Chat client.vcxproj). This can lead to incorrect clean and rebuild behavior. | ||
main.cpp | ||
Chat client.vcxproj -> C:\Users\muskeen\source\repos\chat server\Debug\Chat server.exe |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#TargetFrameworkVersion=v4.0:PlatformToolSet=v142:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0 | ||
Debug|Win32|C:\Users\muskeen\source\repos\chat server\| |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#TargetFrameworkVersion=v4.0:PlatformToolSet=v142:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0 | ||
Debug|Win32|C:\Users\muskeen\source\repos\chat server\| |
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
+453 KB
chatserver/Chat client/Debug/main.obj
Binary file not shown.
BIN
+827 KB
chatserver/Chat client/Debug/vc140.idb
Binary file not shown.
BIN
+508 KB
chatserver/Chat client/Debug/vc140.pdb
Binary file not shown.
BIN
+387 KB
chatserver/Chat client/Debug/vc142.idb
Binary file not shown.
BIN
+556 KB
chatserver/Chat client/Debug/vc142.pdb
Binary file not shown.
Oops, something went wrong.