?? dealer.cs
字號:
namespace Cards
{
class Dealer
{
public static void Deal(Pack pack, Game game)
{
game.Clear();
Hand[] hands =
{
game.North(),
game.South(),
game.West(),
game.East()
};
int handIndex = 0;
while (!pack.IsEmpty())
{
PlayingCard card = pack.Deal();
hands[handIndex].Accept(card);
handIndex++;
handIndex %= 4;
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -