game.cs
来自「微软系列丛书<<C#2005从入门到精通>>」· CS 代码 · 共 46 行
CS
46 行
namespace Cards
{
class Game
{
public Hand North()
{
return north;
}
public Hand South()
{
return south;
}
public Hand West()
{
return west;
}
public Hand East()
{
return east;
}
public void Clear()
{
north.Clear();
south.Clear();
west.Clear();
east.Clear();
}
public void ReturnHandsTo(Pack pack)
{
north.ReturnCardsTo(pack);
south.ReturnCardsTo(pack);
west.ReturnCardsTo(pack);
east.ReturnCardsTo(pack);
}
private Hand north = new Hand(),
south = new Hand(),
west = new Hand(),
east = new Hand();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?