public static Point Agent_SmartDecisionSelect(ComputerPlayer computer, HumanPlayer human, Point sucPoint) { string column = ""; int newRowInt; switch (sucPoint.Column) { case 0: column = "A"; break; case 1: column = "B"; break; case 2: column = "C"; break; case 3: column = "D"; break; case 4: column = "E"; break; case 5: column = "F"; break; case 6: column = "G"; break; case 7: column = "H"; break; case 8: column = "I"; break; case 9: column = "J"; break; } if (sucPoint.Row == 9) { newRowInt = 0; } newRowInt = sucPoint.Row + 1; string row = newRowInt.ToString(); Position newAttemptPosition = new Position { Column = column[0], Row = row[0] }; Point aimPoint = new Point { Column = Array.IndexOf(human.Board.Columns, newAttemptPosition.Column), Row = Array.IndexOf(human.Board.Rows, newAttemptPosition.Row) }; return(aimPoint); }