two left
This commit is contained in:
23
labs/lab7_done/Igra/Gamer.cs
Normal file
23
labs/lab7_done/Igra/Gamer.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
class Gamer
|
||||
{
|
||||
string Name;
|
||||
IgralnayaKost seans;
|
||||
|
||||
public Gamer(string name)
|
||||
{
|
||||
Name = name;
|
||||
seans = new IgralnayaKost();
|
||||
}
|
||||
|
||||
public int SeansGame()
|
||||
{
|
||||
return seans.random();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user