remove dp studying.

This commit is contained in:
nico
2021-01-26 15:01:16 +08:00
parent 0b29a6ce43
commit 57eb201970
5 changed files with 7 additions and 25 deletions
+2 -2
View File
@@ -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>
+1 -1
View File
@@ -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>
@@ -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);
+2 -2
View File
@@ -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>
+1 -1
View File
@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.smallnico.ratel</groupId>
<artifactId>landlords</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
<name>ratel</name>
<url>https://github.com/ainilili/ratel</url>
<packaging>pom</packaging>