Skip to content

Commit

Permalink
Merge pull request dotnet#72 from Fuinny/main
Browse files Browse the repository at this point in the history
Oligopoly
  • Loading branch information
ZacharyPatten authored May 11, 2023
2 parents 3c6a09d + 79b0fd3 commit 14b266d
Show file tree
Hide file tree
Showing 22 changed files with 1,810 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/Oligopoly Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Oligopoly Build
on:
push:
paths:
- 'Projects/Oligopoly/**'
pull_request:
paths:
- 'Projects/Oligopoly/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: dotnet build
run: dotnet build "Projects\Oligopoly\Oligopoly.csproj" --configuration Release
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,16 @@
"console": "externalTerminal",
"stopAtEntry": false,
},
{
"name": "Oligopoly",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "Build Oligopoly",
"program": "${workspaceFolder}/Projects/Oligopoly/bin/Debug/Oligopoly.dll",
"cwd": "${workspaceFolder}/Projects/Oligopoly/bin/Debug",
"console": "externalTerminal",
"stopAtEntry": false,
},
{
"name": "Yahtzee",
"type": "coreclr",
Expand Down
13 changes: 13 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,19 @@
],
"problemMatcher": "$msCompile",
},
{
"label": "Build Oligopoly",
"command": "dotnet",
"type": "process",
"args":
[
"build",
"${workspaceFolder}/Projects/Oligopoly/Oligopoly.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
],
"problemMatcher": "$msCompile",
},
{
"label": "Build Solution",
"command": "dotnet",
Expand Down
12 changes: 12 additions & 0 deletions Projects/Oligopoly/Company.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#nullable disable

namespace Oligopoly;

public class Company
{
public string Name { get; set; }
public string Industry { get; set; }
public decimal SharePrice { get; set; }
public int NumberOfShares { get; set; }
public string Description { get; set; }
}
38 changes: 38 additions & 0 deletions Projects/Oligopoly/Company.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"Name": "Bingoo",
"Industry": "Web",
"SharePrice": 1500,
"NumberOfShares": 0,
"Description": "Promising search company. Leader in the development of various web services and web applications. Bingoo is known for its innovative and user-friendly products that aim to make the web more accessible and enjoyable. Bingoo also invests in artificial intelligence and machine learning to enhance its search engine and other services."
},
{
"Name": "Quantum Software",
"Industry": "Software",
"SharePrice": 2000,
"NumberOfShares": 0,
"Description": "Software development company. The company is best known for its own operating system and various software packages. Quantum Software is a pioneer in the field of software engineering and has a reputation for creating reliable and fast products. Quantum Software also collaborates with other companies and organizations to provide customized solutions for their needs."
},
{
"Name": "Edison Incorporated",
"Industry": "Energy",
"SharePrice": 1000,
"NumberOfShares": 0,
"Description": "An innovative company engaged in the development and production of electric vehicles, batteries, solar panels. Edison Incorporated is a leader in the green energy sector and strives to reduce the environmental impact of transportation and energy consumption. Edison Incorporated also offers a range of services and products for consumers and businesses who want to switch to renewable energy sources."
},
{
"Name": "Netfilm",
"Ticker": "NTF",
"Industry": "Movies",
"SharePrice": 800,
"NumberOfShares": 0,
"Description": "A leading company in the field of online movies and series, also engaged in the development of video hosting. Netfilm is a popular platform for streaming and watching movies and series of various genres and languages. Netfilm also produces its own original content that attracts millions of viewers. Netfilm also provides a video hosting service that allows users to upload and share their own videos."
},
{
"Name": "COBRA Security Consulting",
"Industry": "Army",
"SharePrice": 1200,
"NumberOfShares": 0,
"Description": "COBRA (stands for Counter-Offensive Brigades for Rapid Action) are private special forces units equipped with the latest technology. The company fulfills orders all over the world and cooperates with various governments. COBRA Security Consulting is a professional and discreet company that offers security services for high-risk situations and locations. COBRA Security Consulting also trains and equips its operatives with advanced weapons and gadgets to ensure their success."
}
]
11 changes: 11 additions & 0 deletions Projects/Oligopoly/Event.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#nullable disable

namespace Oligopoly;

public class Event
{
public string Title { get; set; }
public string Description { get; set; }
public string CompanyName { get; set; }
public int Effect { get; set; }
}
302 changes: 302 additions & 0 deletions Projects/Oligopoly/Event.json

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions Projects/Oligopoly/Oligopoly.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<None Remove="Company.json" />
<None Remove="Event.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Company.json" />
<EmbeddedResource Include="Event.json" />
</ItemGroup>
</Project>
Loading

0 comments on commit 14b266d

Please sign in to comment.