Commit 14627e43 authored by erreiip's avatar erreiip
Browse files

[BOT] Repair bot and change little things in the UI

parent 8377055b
Loading
Loading
Loading
Loading
+24 −1
Changes for jeuAssemblage/build.xml: 24 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -61,6 +61,23 @@
			</fileset>
        </jar>
    </target>
    <!--  ==================== Dist Target =====================================  -->
    <target name="test" depends="clean,compile,copy-resources" description="Create binary distribution">
        <copy todir="${dist.home}/lib">
            <fileset dir="${lib.home}"/>
			<fileset dir="${resources.home}"/>
        </copy>
        <!--  Create application JAR file  -->
        <jar jarfile="${dist.home}/${app.fullname}.jar" basedir="${build.home}">
            <manifest>
                <attribute name="Main-Class" value="main.Test"/>
                <attribute name="Class-Path" value="lib/pieces_puzzle-0.1.0.jar lib/flatlaf-2.6.jar"/>
            </manifest>
			<fileset dir="${resources.home}">
				<include name="assets/**"/> <!-- Include all files and subdirectories in the assets folder -->
			</fileset>
        </jar>
    </target>
    <!--  ==================== Javadoc Target ==================================  -->
    <target name="javadoc" depends="compile" description="Create Javadoc API documentation">
        <mkdir dir="${dist.home}/docs/api"/>
@@ -84,8 +101,14 @@
            <java jar="${dist.home}/${app.fullname}.jar" fork="true"/>
        <record name="log.txt" action="stop"/>
    </target>
    <!--  ==================== Run Test Target ==================================  -->
    <target name="run-test" depends="test">
        <record name="log.txt" action="start"/> 
            <java jar="${dist.home}/${app.fullname}.jar" fork="true"/>
        <record name="log.txt" action="stop"/>
    </target>
    <!--  ==================== runWithoutComp Target ==================================  -->
    <target name="runWithoutComp">
    <target name="run-without-comp">
        <java jar="${dist.home}/${app.fullname}.jar" fork="true"/>
    </target>
</project>
 No newline at end of file
+2 −0
Changes for jeuAssemblage/maps.tetriste: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,3 +7,5 @@
17;15;9;8065871849407982592;Test;224
14;12;6;3997966709159476224;Test;120
12;10;6;916372059810813952;test22;56
11;14;6;3889757325765212160;testcp;35
14;11;6;4738589762076974080;zqd;117
+453 B (672 B)
Loading image diff...
+2 −6
Changes for jeuAssemblage/src/bot/BotThread.java: 2 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ import bot.view.interfaces.IMovesView;

public class BotThread implements Runnable {
    
    private final static int DEFAULT_SLEEP = 1000;
    private final static int DEFAULT_SLEEP = 10;

    private int sleepTime;

@@ -64,14 +64,12 @@ public class BotThread implements Runnable {
            }

            try {
                Thread.sleep(10);
                Thread.sleep(this.sleepTime);
            } catch (Exception e) {
                Thread.currentThread().interrupt();
            }
        }

        if (!this.stop) {

        for (IMovesView movesView : this.movesViews) {

            Thread t = new Thread(this.th, movesView);
@@ -81,5 +79,3 @@ public class BotThread implements Runnable {
    }

}

}
+0 −3
Changes for jeuAssemblage/src/bot/strategy/AbstractStrategy.java: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -77,9 +77,6 @@ public abstract class AbstractStrategy implements IStrategyBot {
            }
        }

        System.out.println((bestSolution).toString());
        System.out.println(ret);

        return ret;
    }
}
Loading