Ejemplo n.º 1
0
 public Main()
 {
     InitializeComponent();
     _control = new GuiControl(this, BoardControl);
     _game = new ChessEngine(new SimpleEvaluator());
     _game.LoadFEN("rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 1");
     //_game.LoadFEN("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");
     BoardControl.SetGame(_game, _control);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the ChessEngine to be used for this game
 /// </summary>
 public void SetGame(ChessEngine game, GuiControl control)
 {
     _game = game;
     _control = control;
 }