Initial commit

This commit is contained in:
Laura 2018-12-06 09:59:53 +01:00
commit 55c4e75e1e
No known key found for this signature in database
GPG key ID: 8F6A00D74DB1E457
31 changed files with 2172 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ContentModelStore">
<e p="$USER_HOME$/Library/Caches/Rider2018.2/extResources" t="IncludeRecursive" />
<e p="$USER_HOME$/Library/Caches/Rider2018.2/resharper-host/local/Transient/ReSharperHost/v182/SolutionCaches/_BlackJackIsh.-1090044904.00" t="ExcludeRecursive" />
<e p="$PROJECT_DIR$" t="IncludeFlat">
<e p="BlackJackIsh" t="IncludeRecursive">
<e p="bin" t="ExcludeRecursive" />
<e p="BlackJackIsh.csproj" t="IncludeRecursive" />
<e p="obj" t="ExcludeRecursive">
<e p="Debug" t="Include">
<e p="netcoreapp2.1" t="Include">
<e p="BlackJackIsh.AssemblyInfo.cs" t="Include" />
</e>
</e>
</e>
<e p="Program.cs" t="Include" />
</e>
<e p="BlackJackIsh.sln" t="IncludeFlat" />
<e p="packages" t="ExcludeRecursive" />
</e>
</component>
</project>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ContentModelUserStore">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.BlackJackIsh/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.BlackJackIsh/riderModule.iml" />
</modules>
</component>
</project>

View file

@ -0,0 +1,294 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="27972c36-b166-4aed-bb38-30ec2d8c6c1d" name="Default Changelist" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FUSProjectUsageTrigger">
<session id="179263777">
<usages-collector id="statistics.lifecycle.project">
<counts>
<entry key="project.closed" value="3" />
<entry key="project.open.time.4" value="1" />
<entry key="project.open.time.7" value="1" />
<entry key="project.open.time.9" value="1" />
<entry key="project.opened" value="3" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
<counts>
<entry key="cs" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.open">
<counts>
<entry key="C#" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="cs" value="3503" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="C#" value="3503" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/BlackJackIsh/Program.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1722">
<caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
<folding>
<marker date="1544080749754" expanded="false" signature="6:90" ph="..." />
<marker date="1544080749754" expanded="true" signature="114:7711" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="134:6237" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="180:2379" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="256:2331" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="2439:5960" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="2798:2950" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="3204:5950" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="3371:4122" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="3534:4045" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="3650:4023" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="4153:4385" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="4407:5704" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="4545:4741" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="4806:4967" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="5025:5190" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="5248:5440" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="5498:5686" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="5747:5936" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6011:6231" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6283:7708" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6376:6701" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6611:6691" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6790:7101" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6816:6953" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6984:7091" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="7207:7293" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="7368:7538" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="7443:7505" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="7638:7702" ph="{...}" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>banker</find>
</findStrings>
</component>
<component name="HighlightingSettingsPerFile">
<setting file="file://$PROJECT_DIR$/BlackJackIsh/Program.cs" root0="FORCE_HIGHLIGHTING" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/BlackJackIsh/Program.cs" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="260" />
<option name="y" value="43" />
<option name="width" value="1400" />
<option name="height" value="951" />
</component>
<component name="ProjectView">
<navigator currentView="SolutionExplorer" proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="SolutionExplorer">
<subPane>
<expand>
<path>
<item name="Project" type="784c90a0:SolutionExplorerRootNode" />
<item name="BlackJackIsh" type="24d0babc:SolutionExplorerModelNode" />
</path>
</expand>
<select />
</subPane>
<option name="show-all-files" value="false" />
</pane>
<pane id="FileSystemExplorer" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="Rider.DefaultBreakpoints.AreToggled" value="true" />
<property name="Rider.ProjectViewActivator.IsNotFirstRun" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager">
<configuration name="Default" type="DotNetProject" factoryName=".NET Project">
<option name="EXE_PATH" value="$PROJECT_DIR$/BlackJackIsh/bin/Debug/netcoreapp2.1/BlackJackIsh.dll" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/BlackJackIsh" />
<option name="PASS_PARENT_ENVS" value="1" />
<envs>
<env name="ASPNETCORE_ENVIRONMENT" value="Development" />
<env name="ASPNETCORE_URLS" value="http://localhost:5000" />
</envs>
<option name="USE_EXTERNAL_CONSOLE" value="1" />
<option name="USE_MONO" value="0" />
<option name="RUNTIME_ARGUMENTS" value="" />
<option name="PROJECT_PATH" value="$PROJECT_DIR$/BlackJackIsh/BlackJackIsh.csproj" />
<option name="PROJECT_EXE_PATH_TRACKING" value="1" />
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="1" />
<option name="PROJECT_KIND" value="DotNetCore" />
<option name="PROJECT_TFM" value=".NETCoreApp,Version=v2.1" />
<browser url="http://localhost:5000" />
<method v="2">
<option name="Build" enabled="true" />
</method>
</configuration>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="27972c36-b166-4aed-bb38-30ec2d8c6c1d" name="Default Changelist" comment="" />
<created>1544007915257</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1544007915257</updated>
<workItem from="1544007918594" duration="5859000" />
<workItem from="1544030880733" duration="792000" />
<workItem from="1544082424984" duration="523000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="7174000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="260" y="43" width="1400" height="951" extended-state="0" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2569956" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" weight="0.32945284" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4097788" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="NuGet" order="7" weight="0.32962137" />
<window_info anchor="bottom" id="Docker" order="8" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="9" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
<window_info anchor="bottom" id="Unit Tests" order="11" />
<window_info anchor="bottom" id="Terminal" order="12" />
<window_info anchor="bottom" id="Event Log" order="13" side_tool="true" />
<window_info anchor="bottom" id="Build" order="14" weight="0.3282887" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Errors In Solution" order="3" />
<window_info anchor="right" id="Database" order="4" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="UnityProjectConfiguration" hasMinimizedUI="false" />
<component name="UnityUnitTestConfiguration" currentTestLauncher="NUnit" />
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
<breakpoints>
<breakpoint enabled="true" suspend="NONE" type="DotNet Exception Breakpoints">
<properties exception="System.Threading.ThreadAbortException" displayValue="System.Threading.ThreadAbortException" />
<option name="timeStamp" value="1" />
</breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/BlackJackIsh/Program.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1722">
<caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
<folding>
<marker date="1544080749754" expanded="false" signature="6:90" ph="..." />
<marker date="1544080749754" expanded="true" signature="114:7711" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="134:6237" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="180:2379" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="256:2331" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="2439:5960" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="2798:2950" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="3204:5950" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="3371:4122" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="3534:4045" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="3650:4023" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="4153:4385" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="4407:5704" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="4545:4741" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="4806:4967" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="5025:5190" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="5248:5440" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="5498:5686" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="5747:5936" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6011:6231" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6283:7708" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6376:6701" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6611:6691" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6790:7101" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6816:6953" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="6984:7091" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="7207:7293" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="7368:7538" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="7443:7505" ph="{...}" />
<marker date="1544080749754" expanded="true" signature="7638:7702" ph="{...}" />
</folding>
</state>
</provider>
</entry>
</component>
</project>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="RIDER_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$/../.." />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View file

@ -0,0 +1,14 @@
<Properties StartupConfiguration="{FED657FD-D3B7-49E8-9232-4B64E1EF86F7}|Default">
<MonoDevelop.Ide.Workbench ActiveDocument="BlackJackIsh/Program.cs">
<Files>
<File FileName="BlackJackIsh/Program.cs" Line="5" Column="19" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.ItemProperties.BlackJackIsh PreferredExecutionTarget="MonoDevelop.Default" />
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MultiItemStartupConfigurations />
</Properties>

View file

Binary file not shown.

Binary file not shown.

Binary file not shown.

16
BlackJackIsh.sln Normal file
View file

@ -0,0 +1,16 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlackJackIsh", "BlackJackIsh\BlackJackIsh.csproj", "{FED657FD-D3B7-49E8-9232-4B64E1EF86F7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FED657FD-D3B7-49E8-9232-4B64E1EF86F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FED657FD-D3B7-49E8-9232-4B64E1EF86F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FED657FD-D3B7-49E8-9232-4B64E1EF86F7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FED657FD-D3B7-49E8-9232-4B64E1EF86F7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

View file

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>7.2</LangVersion>
</PropertyGroup>
</Project>

230
BlackJackIsh/Program.cs Normal file
View file

@ -0,0 +1,230 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace BlackJackIsh
{
class Program
{
static void Main(string[] args)
{
var deck = new Dictionary<string, int>()
{
{"Ace of Clubs", 11},
{"Ace of Diamonds", 11},
{"Ace of Hearts", 11},
{"Ace of Spades", 11},
{"Eight of Clubs", 8},
{"Eight of Diamonds", 8},
{"Eight of Hearts", 8},
{"Eight of Spades", 8},
{"Five of Clubs", 5},
{"Five of Diamonds", 5},
{"Five of Hearts", 5},
{"Five of Spades", 5},
{"Four of Clubs", 4},
{"Four of Diamonds", 4},
{"Four of Hearts", 4},
{"Four of Spades", 4},
{"Jack of Clubs", 10},
{"Jack of Diamonds", 10},
{"Jack of Hearts", 10},
{"Jack of Spades", 10},
{"King of Clubs", 10},
{"King of Diamonds", 10},
{"King of Hearts", 10},
{"King of Spades", 10},
{"Nine of Clubs", 9},
{"Nine of Diamonds", 9},
{"Nine of Hearts", 9},
{"Nine of Spades", 9},
{"Queen of Clubs", 10},
{"Queen of Diamonds", 10},
{"Queen of Hearts", 10},
{"Queen of Spades", 10},
{"Seven of Clubs", 7},
{"Seven of Diamonds", 7},
{"Seven of Hearts", 7},
{"Seven of Spades", 7},
{"Six of Clubs", 6},
{"Six of Diamonds", 6},
{"Six of Hearts", 6},
{"Six of Spades", 6},
{"Ten of Clubs", 10},
{"Ten of Diamonds", 10},
{"Ten of Hearts", 10},
{"Ten of Spades", 10},
{"Three of Clubs", 3},
{"Three of Diamonds", 3},
{"Three of Hearts", 3},
{"Three of Spades", 3},
{"Two of Clubs", 2},
{"Two of Diamonds", 2},
{"Two of Hearts", 2},
{"Two of Spades", 2}
};
playGame(deck.Clone());
}
static void playGame(Dictionary<string, int> deck)
{
var player = new Dictionary<string, int>();
var bank = new Dictionary<string, int>();
Console.WriteLine("Welcome to BlackJack!");
GameDelay("Shuffling Deck");
deck.Shuffle();
Console.WriteLine("Shuffled. Ready? [Y]");
var ready = false;
while (!ready)
{
var key = Console.ReadKey();
if (key.Key == ConsoleKey.Y)
ready = true;
}
Console.WriteLine("\r ");
GameDelay("Drawing first card");
player.Add(deck.Draw());
Console.WriteLine("You got: " + player.Last().Key + $" ({player.Last().Value})");
while (true)
{
var responded = false;
var response = false;
var p21 = player.CCount() == 21;
if (!p21)
{
Console.WriteLine($"You are at {player.CCount()}. Do you want to draw again? [Y/N]");
while (!responded)
{
var key = Console.ReadKey();
switch (key.Key)
{
case ConsoleKey.Y:
response = true;
responded = true;
break;
case ConsoleKey.N:
responded = true;
break;
}
}
Console.WriteLine("\r ");
}
if (response)
{
GameDelay("Drawing a card");
player.Add(deck.Draw());
Console.WriteLine("You got: " + player.Last().Key + $" ({player.Last().Value})");
}
else
{
GameDelay("Banker is Drawing");
while (bank.CCount() < 16)
{
bank.Add(deck.Draw());
Console.WriteLine("Banker got: " + bank.Last().Key + $" ({bank.Last().Value})");
}
if (bank.CCount() > 21)
{
Console.WriteLine($"You win! (Banker had {bank.CCount()})");
return;
}
if (player.CCount() == bank.CCount())
{
Console.WriteLine($"Draw! Player and Banker {player.CCount()}");
return;
}
if (bank.CCount() > player.CCount())
{
Console.WriteLine($"You lose! (Banker had {bank.CCount()}; you had {player.CCount()}...)");
return;
}
if (bank.CCount() < player.CCount())
{
Console.WriteLine($"You win! (You had {player.CCount()}; Banker had {bank.CCount()})");
return;
}
}
if (player.CCount() > 21)
{
Console.WriteLine();
Console.WriteLine($"You lose! (Player had {player.CCount()})");
return;
}
}
}
public static void GameDelay(string text)
{
Console.Write(text + ".");
Thread.Sleep(500);
Console.Write(".");
Thread.Sleep(500);
Console.WriteLine(".");
Thread.Sleep(500);
}
}
public static class DictionaryExtensions
{
public static void Shuffle<TKey, TValue>(this Dictionary<TKey, TValue> source)
{
Random r = new Random();
var tmp = source.OrderBy(x => r.Next())
.ToDictionary(item => item.Key, item => item.Value);
source.Clear();
foreach (var entry in tmp)
{
source.Add(entry.Key, entry.Value);
}
}
public static KeyValuePair<string, int> Draw(this Dictionary<string, int> deck)
{
try
{
var card = deck.First();
deck.Remove(card.Key);
return card;
}
catch
{
return new KeyValuePair<string, int>("No cards in deck / deck is null", 0);
}
}
public static Dictionary<TKey, TValue> Clone<TKey, TValue>(this Dictionary<TKey, TValue> source)
{
return source.ToDictionary(x => x.Key, x => x.Value);
}
public static int CCount<TKey>(this Dictionary<TKey, int> source)
{
var i = 0;
foreach (var entry in source)
{
i += entry.Value;
}
return i;
}
public static void Add(this Dictionary<string, int> source, KeyValuePair<string, int> inp)
{
source.Add(inp.Key, inp.Value);
}
}
}

View file

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v2.1",
"signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709"
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v2.1": {
"BlackJackIsh/1.0.0": {
"runtime": {
"BlackJackIsh.dll": {}
}
}
}
},
"libraries": {
"BlackJackIsh/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"/Users/laura/.dotnet/store/|arch|/|tfm|",
"/Users/laura/.nuget/packages",
"/usr/local/share/dotnet/sdk/NuGetFallbackFolder"
]
}
}

View file

@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp2.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "2.1.0"
}
}
}

View file

@ -0,0 +1,5 @@
{
"version": 1,
"dgSpecHash": "hMCu6ywheQfvDGi0ToYBT8JowoD3eMN8xEV0mayAY445KsDDH1fOXDQzOar2zfzrIsXw2BDc/NBXQ3I+iRsEtg==",
"success": true
}

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/obj/project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/laura/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/laura/.nuget/packages/;/usr/local/share/dotnet/sdk/NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">4.7.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.1.0/build/netcoreapp2.1/Microsoft.NETCore.App.props" Condition="Exists('/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.1.0/build/netcoreapp2.1/Microsoft.NETCore.App.props')" />
</ImportGroup>
</Project>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.3/build/netstandard2.0/NETStandard.Library.targets" Condition="Exists('/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.3/build/netstandard2.0/NETStandard.Library.targets')" />
<Import Project="/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.1.0/build/netcoreapp2.1/Microsoft.NETCore.App.targets" Condition="Exists('/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.1.0/build/netcoreapp2.1/Microsoft.NETCore.App.targets')" />
</ImportGroup>
</Project>

View file

@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Generated by the MSBuild WriteCodeFragment class.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("BlackJackIsh")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("BlackJackIsh")]
[assembly: System.Reflection.AssemblyTitleAttribute("BlackJackIsh")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View file

@ -0,0 +1 @@
028d790376061277bf5a66ad5fdcd471623e89fb

View file

@ -0,0 +1 @@
94b0ecafea3cce2831d4029bd598d2c873ad9fc3

View file

@ -0,0 +1,11 @@
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/bin/Debug/netcoreapp2.1/BlackJackIsh.deps.json
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/bin/Debug/netcoreapp2.1/BlackJackIsh.runtimeconfig.json
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/bin/Debug/netcoreapp2.1/BlackJackIsh.runtimeconfig.dev.json
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/bin/Debug/netcoreapp2.1/BlackJackIsh.dll
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/bin/Debug/netcoreapp2.1/BlackJackIsh.pdb
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/obj/Debug/netcoreapp2.1/BlackJackIsh.csprojAssemblyReference.cache
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/obj/Debug/netcoreapp2.1/BlackJackIsh.csproj.CoreCompileInputs.cache
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/obj/Debug/netcoreapp2.1/BlackJackIsh.AssemblyInfoInputs.cache
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/obj/Debug/netcoreapp2.1/BlackJackIsh.AssemblyInfo.cs
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/obj/Debug/netcoreapp2.1/BlackJackIsh.dll
/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/obj/Debug/netcoreapp2.1/BlackJackIsh.pdb

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,51 @@
{
"version": "1.0.0",
"restore": {
"projectUniqueName": "/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/BlackJackIsh.csproj",
"projectName": "BlackJackIsh",
"projectPath": "/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/BlackJackIsh.csproj",
"outputPath": "/Users/laura/RiderProjects/BlackJackIsh/BlackJackIsh/obj/",
"projectStyle": "PackageReference",
"fallbackFolders": [
"/usr/local/share/dotnet/sdk/NuGetFallbackFolder"
],
"originalTargetFrameworks": [
"netcoreapp2.1"
],
"frameworks": {
"netcoreapp2.1": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp2.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"suppressParent": "All",
"target": "Package",
"version": "[2.1.0, )",
"autoReferenced": true
}
},
"imports": [
"net461"
],
"assetTargetFallback": true,
"warn": true
}
},
"runtimes": {
"": {
"#import": []
},
"osx-x64": {
"#import": []
}
}
}