Contenu connexe
Plus de Fujio Kojima (20)
de:code 2019 MW51 「C# ドキドキ・ライブコーディング対決」 小島の分
- 8. public interface IPlayer
{
...
// 自分の手番で出すカードを返す
Card PutCard(IList<Card> myCards,
IList<Card> cardsOnTable, // テーブルのカード
IDictionary<IPlayer, int> playerPassCount); // 全員のパスの回数
}
今回の各自が実装するコード
誰かが工夫を
仕掛けてこない
理由がない
- 14. 0
1
2
1
0 0 0 1 0 2 2 2 2 0 0 0 0
0 1 0 0 0 1 2 0 0 0 1 0 0
0 1 1 0 2 2 2 2 1 0 0 0 0
0 0 1 0 0 1 2 2 2 1 0 0 0
局面を数値化
- 32. ML.NET は?
public class PlayerKojima : IPlayer
{
public override string PalyerName { get => "小島"; }
public override string PalyerImageName { get => "kojima.jpg"; }
public Card PutCard(IList<Card> myCards, IList<Card> cardsOnTable,
IDictionary<IPlayer, int> playerPassCount)
{ … }
}