Archives from S:\ Drive

Good to keep around methinks
This commit is contained in:
Amrit Panesar committed 2015-04-01 21:23:15 -07:00
1 parent eadaf70b9e
commit 6dd63cc439
606 files changed
+50212

No files matched your search

@@ -0,0 +1,20 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Blackjack", "Blackjack\Blackjack.vcproj", "{F3A17DD5-8FF3-46B4-84DC-3ADF7C508D4F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F3A17DD5-8FF3-46B4-84DC-3ADF7C508D4F}.Debug|Win32.ActiveCfg = Debug|Win32
{F3A17DD5-8FF3-46B4-84DC-3ADF7C508D4F}.Debug|Win32.Build.0 = Debug|Win32
{F3A17DD5-8FF3-46B4-84DC-3ADF7C508D4F}.Release|Win32.ActiveCfg = Release|Win32
{F3A17DD5-8FF3-46B4-84DC-3ADF7C508D4F}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,14 @@
#include <iostream>
#include <string>
#include <ctime>
#include "game.h"
#include "deck.h"
#include "card.h"
#include "GenericPlayer.h"
#include "Player.h"
#include "House.h"
#include "Player.h"
using namespace std;
@@ -0,0 +1,228 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="Blackjack"
ProjectGUID="{F3A17DD5-8FF3-46B4-84DC-3ADF7C508D4F}"
RootNamespace="Blackjack"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
GenerateDebugInformation="true"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
RuntimeLibrary="2"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
GenerateDebugInformation="true"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\Deck.cpp"
>
</File>
<File
RelativePath=".\Game.cpp"
>
</File>
<File
RelativePath=".\GenericPlayer.cpp"
>
</File>
<File
RelativePath=".\main.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\Blackjack.h"
>
</File>
<File
RelativePath=".\Card.h"
>
</File>
<File
RelativePath=".\Deck.h"
>
</File>
<File
RelativePath=".\Game.h"
>
</File>
<File
RelativePath=".\GenericPlayer.h"
>
</File>
<File
RelativePath=".\House.h"
>
</File>
<File
RelativePath=".\Player.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
@@ -0,0 +1,23 @@
#ifndef CARD_H
#define CARD_H
#include "Blackjack.h"
class Card
{
private:
bool isFaceUp;
public:
enum RANK { ACE=1, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING };
enum SUIT { CLUBS, DIAMONDS, HEARTS, SPADES };
Card(RANK rank = ACE, SUIT suit = SPADES, bool isFaceUp = true);
int getValue();
void flip();
protected:
RANK rank;
SUIT suit;
};
#endif
@@ -0,0 +1,2 @@
#include "Blackjack.h"
@@ -0,0 +1,18 @@
#ifndef DECK_H
#define DECK_H
#include "Blackjack.h"
class Deck : public Hand
{
private:
public:
Deck();
virtual ~Deck();
void populate();
void shuffle();
void deal();
void additionalCards(GenericPlayer &aGenericPlayer);
};
#endif
@@ -0,0 +1,2 @@
#include "Blackjack.h"
@@ -0,0 +1,20 @@
#ifndef GAME_H
#define GAME_H
#include "Blackjack.h"
class Game
{
private:
Deck deck;
House house;
Player player;
public:
Game(const string &name);
~Game();
bool play();
};
#endif
@@ -0,0 +1 @@
#include "Blackjack.h"
@@ -0,0 +1,22 @@
#ifndef GENERICPLAYER_H
#define GENERICPLAYER_H
#include "Blackjack.h"
class GenericPlayer : public Hand
{
private:
string name;
public:
GenericPlayer();
virtual ~GenericPlayer();
virtual bool isHitting();
bool isBusted();
bool bust();
string getName();
void setName(string name);
};
#endif
@@ -0,0 +1,16 @@
#ifndef HOUSE_H
#define HOUSE_H
#include "Blackjack.h"
class House : public GenericPlayer
{
private:
public:
House(const string &name = "Dealer");
virtual ~House();
virtual bool isHitting();
void firstFirstCard();
};
#endif
@@ -0,0 +1,18 @@
#ifndef PLAYER_H
#define PLAYER_H
#include "Blackjack.h"
class Player : public GenericPlayer
{
private:
public:
Player(const string &name = "");
virtual ~Player();
virtual bool isHitting();
bool win();
bool loose();
bool push();
};
#endif
@@ -0,0 +1,21 @@
#include "Blackjack.h"
int main()
{
string name;
while (true)
{
cout << "Welcome to Blackjack 77260" << endl;
cout << "What is your name?" << endl << ":";
cin >> name;
getch();
}
while (true)
{
Game game(const string &name);
if (game.play())
{
break;
}
}
}