Exemplo n.º 1
0
 public InviteEngine(bool isWhite, Game game)
 {
     InitializeComponent();
     this.Game      = game;
     this.isWhite   = isWhite;
     TournamentInfo = new InfinityChess.TournamentManager.Tournament(this.Game);
 }
Exemplo n.º 2
0
 // set form using tournament object
 public void Set(InfinityChess.TournamentManager.Tournament tournament)
 {
     numericGainPerMove.Value = tournament.BlitzHumanGainPerMove;
     if (tournament.BlitzTimeMin != 0)
     {
         numericTime.Value = tournament.BlitzTimeMin;
     }
 }
Exemplo n.º 3
0
        public InviteEngine(UCIEngine uciEngine, Book book, bool isWhite, Game game)
        {
            InitializeComponent();

            this.Game           = game;
            this.selectedEngine = uciEngine;
            this.selectedBook   = book;
            this.isWhite        = isWhite;
            TournamentInfo      = new InfinityChess.TournamentManager.Tournament(this.Game);
        }
Exemplo n.º 4
0
 public Tournament(Game game)
 {
     this.Game = game;
     InitializeComponent();
     TournamentInfo = new InfinityChess.TournamentManager.Tournament(this.Game);
 }
Exemplo n.º 5
0
 // set form using tournament object
 public void Set(InfinityChess.TournamentManager.Tournament tournament)
 {
     numHourFirst.Value = tournament.LongFirstHour;
 }
Exemplo n.º 6
0
 // save form to tournament object
 public void Get(InfinityChess.TournamentManager.Tournament tournament)
 {
     tournament.LongFirstHour = numHourFirst.Value;
 }
Exemplo n.º 7
0
 // save form to tournament object
 public void Get(InfinityChess.TournamentManager.Tournament tournament)
 {
     tournament.BlitzTimeMin          = numericTime.Value;
     tournament.BlitzHumanGainPerMove = numericGainPerMove.Value;
 }