mirror of
https://github.com/tiennm99/caro.git
synced 2026-09-04 04:17:34 +00:00
remove dp studying.
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
<parent>
|
||||
<groupId>com.smallnico.ratel</groupId>
|
||||
<artifactId>landlords</artifactId>
|
||||
<version>1.2.4</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.smallnico.ratel</groupId>
|
||||
<artifactId>landlords-common</artifactId>
|
||||
<version>1.2.4</version>
|
||||
<version>1.2.5</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<parent>
|
||||
<groupId>com.smallnico.ratel</groupId>
|
||||
<artifactId>landlords</artifactId>
|
||||
<version>1.2.4</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
|
||||
</project>
|
||||
+1
-19
@@ -36,7 +36,7 @@ public class MediumRobotDecisionMakers extends AbstractRobotDecisionMakers{
|
||||
|
||||
private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
private static final Long DEDUCE_LIMIT = 100 * 5L;
|
||||
private static final Long DEDUCE_LIMIT = 100 * 3L;
|
||||
|
||||
public MediumRobotDecisionMakers() {
|
||||
try {
|
||||
@@ -47,23 +47,6 @@ public class MediumRobotDecisionMakers extends AbstractRobotDecisionMakers{
|
||||
}catch(Exception e) {
|
||||
SimplePrinter.serverLog("Medium Robot init without dp.json.");
|
||||
}
|
||||
|
||||
new Thread() {
|
||||
public void run() {
|
||||
while(true) {
|
||||
try {
|
||||
Thread.sleep(1000 * 60);
|
||||
String date = SDF.format(new Date());
|
||||
FileWriter w = new FileWriter("dp_" + date + ".json", false);
|
||||
w.write(gson.toJson(DP));
|
||||
w.flush();
|
||||
w.close();
|
||||
} catch (InterruptedException | IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -150,7 +133,6 @@ public class MediumRobotDecisionMakers extends AbstractRobotDecisionMakers{
|
||||
if(suc != null) {
|
||||
score = (long)(suc ? 1 : -1);
|
||||
counter.addAndGet(score);
|
||||
dp.put(key, score);
|
||||
}
|
||||
}
|
||||
pokersList.set(cursor, original);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<parent>
|
||||
<groupId>com.smallnico.ratel</groupId>
|
||||
<artifactId>landlords</artifactId>
|
||||
<version>1.2.4</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
@@ -20,7 +20,7 @@
|
||||
<dependency>
|
||||
<groupId>com.smallnico.ratel</groupId>
|
||||
<artifactId>landlords-common</artifactId>
|
||||
<version>1.2.4</version>
|
||||
<version>1.2.5</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user