예제 #1
0
        private void RegHumanMove(Coordinate move)
        {
            DateTime time = DateTime.Now;

            board[move.X, move.Y]          = 1;
            picboard[move.X, move.Y].Image = own.Image;
            next_turn.Image = opp.Image;
            TimeSpan     t = time.Subtract(lasttime);
            HistoryEntry e = new HistoryEntry(move, 1, t);

            history.AddEntry(e);
#if MONO == false
            richTextBox1.AppendText(e.ToString() + "\n");
#endif
            lasttime = DateTime.Now;
            Update();
        }
예제 #2
0
        private void RegAiMove(Coordinate move)
        {
            DateTime time = DateTime.Now;

            board[move.X, move.Y]          = -1;
            picboard[move.X, move.Y].Image = opp.Image;
            next_turn.Image = own.Image;
            this.Text       = "Stahlfaust - " + ai.statusStr.ToString();
            TimeSpan     t = time.Subtract(lasttime);
            HistoryEntry e = new HistoryEntry(move, -1, t);

            history.AddEntry(e);
#if MONO == false
            richTextBox1.AppendText(e.ToString() + "\n");
#endif
            lasttime = DateTime.Now;
            Update();
        }
 private void RegHumanMove(Coordinate move)
 {
     DateTime time = DateTime.Now;
     board[move.X, move.Y] = 1;
     picboard[move.X, move.Y].Image = own.Image;
     next_turn.Image = opp.Image;
     TimeSpan t = time.Subtract(lasttime);
     HistoryEntry e = new HistoryEntry(move, 1, t);
     history.AddEntry(e);
     #if MONO == false
     richTextBox1.AppendText(e.ToString() + "\n");
     #endif
     lasttime= DateTime.Now;
     Update();
 }
 private void RegAiMove(Coordinate move)
 {
     DateTime time = DateTime.Now;
     board[move.X, move.Y] = -1;
     picboard[move.X, move.Y].Image = opp.Image;
     next_turn.Image = own.Image;
     this.Text = "Stahlfaust - " + ai.statusStr.ToString();
     TimeSpan t = time.Subtract(lasttime);
     HistoryEntry e = new HistoryEntry(move, -1, t);
     history.AddEntry(e);
     #if MONO == false
     richTextBox1.AppendText(e.ToString() + "\n");
     #endif
     lasttime = DateTime.Now;
     Update();
 }