Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
7f38def
updated with name
Brettj85 Jan 8, 2019
10ad562
added name
Brettj85 Jan 8, 2019
3a3555f
homework done
Brettj85 Jan 10, 2019
615cacd
practace 1 day 2 done
Brettj85 Jan 10, 2019
e6c2273
practace2 done
Brettj85 Jan 10, 2019
40921ed
starting the text based adventure
Brettj85 Jan 10, 2019
2e07782
up to spider
Brettj85 Jan 14, 2019
e77d929
up to spider
Brettj85 Jan 14, 2019
06caa32
committed
Brettj85 Jan 15, 2019
76f43bc
up to spec 6
Brettj85 Jan 15, 2019
9798f26
up to sentence
Brettj85 Jan 16, 2019
e405f91
finished structure of question and answer portion of the game success…
Brettj85 Jan 16, 2019
de77b73
continued to fight working
Brettj85 Jan 16, 2019
bb385cb
working and restarting game
Brettj85 Jan 16, 2019
28167af
built out deaths just have fight lest to build
Brettj85 Jan 16, 2019
ad0ccbd
completed and tested game
Brettj85 Jan 16, 2019
7e9aae0
cleaned up the console clears a bit
Brettj85 Jan 16, 2019
076bed8
cleaned upthe code a little ran out of time
Brettj85 Jan 16, 2019
bfd57ba
added file path parser
Brettj85 Jan 17, 2019
e82d6cb
completed Rock Paper Scissors
Brettj85 Jan 17, 2019
f47dfa7
added recursive ROCK PAPER SCISSOR from fiddle
Brettj85 Jan 19, 2019
89fa722
finishing sentence for piglatin
Brettj85 Jan 19, 2019
d937d14
finished up
Brettj85 Jan 19, 2019
1f64a70
completed
Brettj85 Jan 19, 2019
734e038
file path bonus completed
Brettj85 Jan 19, 2019
c0b7de3
finished fizzbuzz
Brettj85 Jan 23, 2019
e366f6b
finished fizzbuzz
Brettj85 Jan 25, 2019
fd34e25
finished fizzbuzz
Brettj85 Jan 26, 2019
424e0a7
finished shell
Brettj85 Jan 26, 2019
af8c405
looping through the array and finding the next smallest, have an issu…
Brettj85 Jan 26, 2019
e7f5616
Still cant get it to work but leaving coffee shop
Brettj85 Jan 26, 2019
0a09b39
tryed one more thing still not working it just returns 1 value over a…
Brettj85 Jan 26, 2019
4b0e0a0
changing stratagy need to see if c# can run functions simultaneously
Brettj85 Jan 26, 2019
d05a9d3
testing 'workers'
Brettj85 Jan 26, 2019
dea8ccf
successfuly went down rabbit hole, need to read more on objects, cons…
Brettj85 Jan 26, 2019
10c3fed
shell of multithread done may need 1 more thread
Brettj85 Jan 27, 2019
86e2b73
finished splitting the array into a larger # array and smaller (parti…
Brettj85 Jan 27, 2019
c898087
done for now
Brettj85 Jan 27, 2019
d92eb53
array is now split into 2 arrays 1 containing higher values and one l…
Brettj85 Jan 27, 2019
cb3a7a9
fixed a bug where it was inserting a 0 into the async array
Brettj85 Jan 27, 2019
26d5d1b
made an unfortunate assumption about how the sort will happenso thing…
Brettj85 Jan 27, 2019
026bac8
there is a more modern way of doing this
Brettj85 Jan 28, 2019
6aaf82c
closures may solve this issue i need to fix tie in ticTacToeand other…
Brettj85 Jan 28, 2019
130c707
Merge pull request #4 from Brettj85/RockPaperScissors
Brettj85 Jan 29, 2019
8c8ca7d
Merge pull request #5 from Brettj85/piglatin
Brettj85 Jan 29, 2019
9758150
Merge pull request #3 from Brettj85/textBasedGame
Brettj85 Jan 29, 2019
3f79bf0
Merge pull request #1 from Brettj85/helloBranch
Brettj85 Jan 29, 2019
3bd6a80
Merge pull request #2 from Brettj85/homework1
Brettj85 Jan 29, 2019
a024e45
spoke to my sr dev today about this and was advised to not do it this…
Brettj85 Jan 29, 2019
f259583
starting from scratch.....
Brettj85 Jan 29, 2019
dfa5d5d
have the basic gameplan
Brettj85 Jan 30, 2019
ae86364
basic structure
Brettj85 Jan 30, 2019
3d000d8
tired theres issues i can do a bubble sort in 10 min will try and com…
Brettj85 Jan 30, 2019
5e392bf
.
Brettj85 Jan 30, 2019
9ca7254
still super broken, still working on it
Brettj85 Jan 30, 2019
984ebe6
have 30 min left then need to write a simple sort for home work
Brettj85 Jan 30, 2019
2022ff3
have 30 min left then need to write a simple sort for home work
Brettj85 Jan 30, 2019
25296ba
dont know what i was doing there restarting it... yayy another one do…
Brettj85 Jan 30, 2019
b7b7e7b
structure doneish
Brettj85 Jan 30, 2019
1db1084
working
Brettj85 Jan 30, 2019
39e5148
Merge pull request #7 from Brettj85/sort
Brettj85 Feb 4, 2019
e8ae004
file structure built
Brettj85 Feb 10, 2019
e526ca9
Garage Done
Brettj85 Feb 11, 2019
caafd08
done
Brettj85 Feb 11, 2019
39c05a1
all built except station
Brettj85 Feb 11, 2019
e63d71c
all built except station
Brettj85 Feb 11, 2019
26bfced
almost done with star wars but before i finished i found an issue wit…
Brettj85 Feb 11, 2019
6cd9420
finished star wars
Brettj85 Feb 11, 2019
c3eafb7
not working
Brettj85 Feb 12, 2019
5cf0765
not working
Brettj85 Feb 12, 2019
7cd36e8
not working
Brettj85 Feb 12, 2019
df2f806
add files
Brettj85 Feb 13, 2019
c92792a
still working
Brettj85 Feb 14, 2019
54051d6
fixed some issues
Brettj85 Feb 14, 2019
a97a33b
First Commit
Brettj85 Feb 25, 2019
681de74
ienums
Brettj85 Feb 26, 2019
1ac4886
ienums
Brettj85 Feb 26, 2019
d1f93d1
Merge pull request #9 from Brettj85/oop1
Brettj85 Feb 27, 2019
2227443
yeild
Brettj85 Feb 28, 2019
a522669
birth day of week
Brettj85 Mar 6, 2019
0763696
done with day of birth
Brettj85 Mar 6, 2019
a617ea0
done
Brettj85 Mar 6, 2019
ee65921
first
Brettj85 Mar 6, 2019
1cd4968
guessing game done
Brettj85 Mar 6, 2019
ed69b10
guessing game done
Brettj85 Mar 6, 2019
05d89ef
finished
Brettj85 Mar 7, 2019
50b76ee
Merge pull request #13 from Brettj85/25th
Brettj85 Mar 11, 2019
f944a80
Merge pull request #15 from Brettj85/27th
Brettj85 Mar 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions DayOfWeekBirth/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/DayOfWeekBirth.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
15 changes: 15 additions & 0 deletions DayOfWeekBirth/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/DayOfWeekBirth.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
8 changes: 8 additions & 0 deletions DayOfWeekBirth/DayOfWeekBirth.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

</Project>
85 changes: 85 additions & 0 deletions DayOfWeekBirth/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using System;

namespace DayOfWeekBirth
{
class Program
{
private enum DaysWeek
{
Sunday,
Monday,
Tuesday,
Wedensday,
Thursday,
Friday,
Saturday
}
static void Main(string[] args)
{
DayOfBirth birth = new DayOfBirth();
int year = getValidYear();
int day = birth.DayOfWeek(20, 6, year);
DaysWeek theDay = (DaysWeek)day;
Console.Clear();
bool isBeforeBirthday = DateTime.Now.Month == 6 && DateTime.Now.Day <= 20 ? true : false;
isBeforeBirthday = !isBeforeBirthday && DateTime.Now.Month < 6 ? false : true;
isBeforeBirthday = isBeforeBirthday && year == DateTime.Now.Year ? true : false;
Console.WriteLine("My birthday {2} on {0} in {1}", theDay, year, (year < DateTime.Now.Year || isBeforeBirthday ? "fell" : "falls"));
Console.WriteLine();
Events odd = new Events();
string happend = odd.GetEvent(year);
if (happend != "")
{
printHappend(happend, year);
}
}
private static int getValidYear()
{
Console.Write("enter four digits of a year");
string yearstring = "";
int year = 0;
while (year == 0)
{
while (yearstring.Length != 4)
{
yearstring = Console.ReadLine();
}
if (int.TryParse(yearstring, out year))
{

}
}
return year;
}
private static void printHappend(string happend, int year)
{
int amount = happend.Length;
string[] story = new string[amount];
for (int i = 0; i < amount; i++)
{
story[i] = happend.Substring(i, 1);
}

Console.WriteLine(" ON THIS DAY IN {0} ", year);
for (int i = 0; i < story.Length; i++)
{
if (i % 24 == 0 && i != 0)
{
if (story[i + 1] != " " && story[i - 1] != " " && story[i] != " ")
{
Console.Write("-");
}
Console.WriteLine();
if (story[i] != " ")
{
Console.Write(story[i]);
}
}
else
{
Console.Write(story[i]);
}
}
}
}
}
26 changes: 26 additions & 0 deletions Enum/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/enum.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
15 changes: 15 additions & 0 deletions Enum/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/enum.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
55 changes: 55 additions & 0 deletions Enum/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using System;

namespace ENUM
{
class Program
{
private enum Day
{
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday
};
private enum Months : byte
{
Jan,
Feb,
Mar,
Apr,
May,
Jun,
Jul,
Aug,
Sep,
Oct,
Nov,
Dec
};
static void Main(string[] args)
{
Day today = Day.Monday;
int dayNumber = (int)today;
Console.WriteLine("{0} is day #{1}.", today, dayNumber);
Months thisMonth = Months.Dec;
byte monthNumber = (byte)thisMonth;
Console.WriteLine("{0} is month #{1}.", thisMonth, monthNumber);

foreach (var item in new[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 })
{
if (Enum.IsDefined(typeof(Months), item))
{
var monthEnum = (Months)item;
Console.WriteLine(monthEnum.ToString());
}
else
{
Console.WriteLine("Invalid Number");
}
}
}
}
}
8 changes: 8 additions & 0 deletions Enum/enum.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

</Project>
21 changes: 20 additions & 1 deletion FizzBuzz/FizzBuzz.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
using System;
using System.Linq;
using System.Collections.Generic;

namespace FizzBuzz
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
for (int i = 1; i < 100; i++)
{
if (i % 3 == 0)
{
Console.Write("FIZZ");
}
if (i % 5 == 0)
{
Console.Write("BUZZ");
}
if (i % 3 != 0 && i % 5 != 0)
{
Console.Write(i);
}
Console.Write("\n");
}
// Enumerable.Range(1, 100).Select(n => new Dictionary<int, string>
// { {15, "FizzBuzz"}, {3, "Fizz"}, {5, "Buzz"}, {1, n.ToString()} }.First(kv => n % kv.Key == 0).Value).ToList().ForEach(Console.WriteLine);
}
}
}
26 changes: 26 additions & 0 deletions Garage/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/Garage.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
15 changes: 15 additions & 0 deletions Garage/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Garage.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
Loading