예제 #1
0
파일: Options.cs 프로젝트: Joseph24/AI
 //
 // Restores all game options to their default values.
 //
 public void RestoreDefaults()
 {
     this.ShowValidMoves     = true;
     this.AnimateMoves       = true;
     this.PreviewMoves       = false;
     this.BoardColor         = SquareControl.NormalBackColorDefault;
     this.ValidMoveColor     = SquareControl.ValidMoveBackColorDefault;
     this.ActiveSquareColor  = SquareControl.ActiveSquareBackColorDefault;
     this.MoveIndicatorColor = SquareControl.MoveIndicatorColorDefault;
     this.FirstMove          = Board.Black;
     this.ComputerPlaysBlack = false;
     this.ComputerPlaysWhite = true;
     this.Difficulty         = ReversiForm.Difficulty.Intermediate;
 }
예제 #2
0
 //
 // Restores all game options to their default values.
 //
 public void RestoreDefaults()
 {
     this.ShowValidMoves     = true;
     this.AnimateMoves       = true;
     this.PreviewMoves       = false;
     this.BoardColor         = SquareControl.NormalBackColorDefault;
     this.ValidMoveColor     = SquareControl.ValidMoveBackColorDefault;
     this.ActiveSquareColor  = SquareControl.ActiveSquareBackColorDefault;
     this.MoveIndicatorColor = SquareControl.MoveIndicatorColorDefault;
     this.FirstMove          = Board.Black;
     this.ComputerPlaysBlack = false;
     this.ComputerPlaysWhite = true;
     this.Difficulty         = ReversiForm.Difficulty.Intermediate;
 }
예제 #3
0
파일: Options.cs 프로젝트: Joseph24/AI
 //
 // Creates a new Options object by copying an existing one.
 //
 public Options(Options options)
 {
     this.ShowValidMoves     = options.ShowValidMoves;
     this.PreviewMoves       = options.PreviewMoves;
     this.AnimateMoves       = options.AnimateMoves;
     this.BoardColor         = options.BoardColor;
     this.ValidMoveColor     = options.ValidMoveColor;
     this.ActiveSquareColor  = options.ActiveSquareColor;
     this.MoveIndicatorColor = options.MoveIndicatorColor;
     this.FirstMove          = options.FirstMove;
     this.ComputerPlaysBlack = options.ComputerPlaysBlack;
     this.ComputerPlaysWhite = options.ComputerPlaysWhite;
     this.Difficulty         = options.Difficulty;
 }
예제 #4
0
 //
 // Creates a new Options object by copying an existing one.
 //
 public Options(Options options)
 {
     this.ShowValidMoves     = options.ShowValidMoves;
     this.PreviewMoves       = options.PreviewMoves;
     this.AnimateMoves       = options.AnimateMoves;
     this.BoardColor         = options.BoardColor;
     this.ValidMoveColor     = options.ValidMoveColor;
     this.ActiveSquareColor  = options.ActiveSquareColor;
     this.MoveIndicatorColor = options.MoveIndicatorColor;
     this.FirstMove          = options.FirstMove;
     this.ComputerPlaysBlack = options.ComputerPlaysBlack;
     this.ComputerPlaysWhite = options.ComputerPlaysWhite;
     this.Difficulty         = options.Difficulty;
 }