package com.guisehn.main;

import java.util.Scanner;

public class AppStarter {
    
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        
        System.out.println("Digite o tamanho do quadrado mágico:");
        int size = in.nextInt();

        System.out.println("Digite o tamanho da população:");
        int populationSize = in.nextInt();
        
        System.out.println("Digite a probabilidade de mutação:");
        double mutationProbability = in.nextDouble();
        
        MagicSquareFinder finder = new MagicSquareFinder(size,
            populationSize,
            (int)(populationSize * 0.05),
            mutationProbability);

        finder.start();
        
        /*MainScreen screen = new MainScreen();
        screen.setVisible(true);*/
    }
    
}

@@ -385,32 +385,137 @@
 Int();%0A        %0A
+        System.out.println(%22Digite o tamanho da elite:%22);%0A        int eliteSize = in.nextInt();%0A        %0A
         System.o
@@ -734,36 +734,17 @@
     
-(int)(populationSize * 0.05)
+eliteSize
 ,%0A  

allow the user to enter elite size