forked from dotnet/dotnet-console-games
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dotnet#72 from Fuinny/main
Oligopoly
- Loading branch information
Showing
22 changed files
with
1,810 additions
and
1 deletion.
There are no files selected for viewing
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,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 |
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
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
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,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; } | ||
} |
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,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." | ||
} | ||
] |
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,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; } | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,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> |
Oops, something went wrong.