internal void GetMyFigureColor() { var col = autoIt.GetPixelColor(field.offsetX + field.cellFigureOffsetX, field.offsetY + field.cellFigureOffsetY); if (col == 16316664 || col == 5657426) { if (col == 16316664) { whitefigure = false; } else { whitefigure = true; } } else { console.WriteLine("Error update figure color."); } }
internal void GetMyFigureColor() { var col = autoIt.GetPixelColor(field.offsetX + field.cellFigureOffsetX, field.offsetY + field.cellFigureOffsetY); if (col == 16316664 || col == 5657426) { if (col == 16316664) { Notify("We play Black figure"); whitefigure = false; moves.IsPlayerNextMove = false; } else { Notify("We play Whitefigure"); whitefigure = true; moves.IsPlayerNextMove = true; } } else { Notify("Error update figure color."); } }