示例#1
0
        /// <summary>
        /// この対局設定に従う、初期局面でのKifuMoveTimesを生成して返す。
        /// (残り時間が持ち時間に設定されている)
        /// </summary>
        /// <returns></returns>
        public KifuMoveTimes GetInitialKifuMoveTimes()
        {
            var k = new KifuMoveTime[2];

            foreach (var c in All.Colors())
            {
                var p        = Player(c);
                var restTime = new TimeSpan(p.Hour, p.Minute, p.Second);
                k[(int)c] = new KifuMoveTime(TimeSpan.Zero, TimeSpan.Zero, TimeSpan.Zero, restTime);
            }

            return(new KifuMoveTimes(k[0], k[1]));
        }
示例#2
0
 public KifuMoveTimes(KifuMoveTime black, KifuMoveTime white)
 {
     Players = new KifuMoveTime[2] {
         black, white
     };
 }