diff --git a/Sources/MaSoluction/MaSoluction.sln b/Sources/MaSoluction/MaSoluction.sln index 99de4a9..2faff3c 100644 --- a/Sources/MaSoluction/MaSoluction.sln +++ b/Sources/MaSoluction/MaSoluction.sln @@ -3,7 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.2.32616.157 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{2CC2AF2A-F6B6-44BF-A1C2-710575725F6B}" +EndProject Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2CC2AF2A-F6B6-44BF-A1C2-710575725F6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2CC2AF2A-F6B6-44BF-A1C2-710575725F6B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2CC2AF2A-F6B6-44BF-A1C2-710575725F6B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2CC2AF2A-F6B6-44BF-A1C2-710575725F6B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection diff --git a/Sources/MaSoluction/Model/Die.cs b/Sources/MaSoluction/Model/Die.cs new file mode 100644 index 0000000..66b6fca --- /dev/null +++ b/Sources/MaSoluction/Model/Die.cs @@ -0,0 +1,15 @@ +namespace Model +{ + public abstract class Die + { + private String name ; + + public Die(String name) + { + this.name = name; + } + + public abstract void RandomFace(); + + } +} \ No newline at end of file diff --git a/Sources/MaSoluction/Model/Model.csproj b/Sources/MaSoluction/Model/Model.csproj new file mode 100644 index 0000000..bafd05b --- /dev/null +++ b/Sources/MaSoluction/Model/Model.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Sources/MaSoluction/Model/NumberDie.cs b/Sources/MaSoluction/Model/NumberDie.cs new file mode 100644 index 0000000..4e0c07f --- /dev/null +++ b/Sources/MaSoluction/Model/NumberDie.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class NumberDie : Die + { + private int min; + private int max; + private Random random=new Random(); + public NumberDie(string name) : base(name) + { + } + + + public override void RandomFace() + { + int value=random.Next(min,max+1); + + } + } +} diff --git a/Sources/MaSoluction/NumberDice.cs b/Sources/MaSoluction/NumberDice.cs new file mode 100644 index 0000000..f4b3537 --- /dev/null +++ b/Sources/MaSoluction/NumberDice.cs @@ -0,0 +1,8 @@ +using System; + +public class Class1 +{ + public Class1() + { + } +}