From 57eb201970eceb3f00b1bdf93a91e75a66ec0071 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 26 Jan 2021 15:01:16 +0800 Subject: [PATCH] remove dp studying. --- landlords-client/pom.xml | 4 ++-- landlords-common/pom.xml | 2 +- .../robot/MediumRobotDecisionMakers.java | 20 +------------------ landlords-server/pom.xml | 4 ++-- pom.xml | 2 +- 5 files changed, 7 insertions(+), 25 deletions(-) diff --git a/landlords-client/pom.xml b/landlords-client/pom.xml index 2b75a3d..678a491 100644 --- a/landlords-client/pom.xml +++ b/landlords-client/pom.xml @@ -13,14 +13,14 @@ com.smallnico.ratel landlords - 1.2.4 + 1.2.5 com.smallnico.ratel landlords-common - 1.2.4 + 1.2.5 diff --git a/landlords-common/pom.xml b/landlords-common/pom.xml index 3d8911d..f6959e6 100644 --- a/landlords-common/pom.xml +++ b/landlords-common/pom.xml @@ -10,7 +10,7 @@ com.smallnico.ratel landlords - 1.2.4 + 1.2.5 \ No newline at end of file diff --git a/landlords-common/src/main/java/org/nico/ratel/landlords/robot/MediumRobotDecisionMakers.java b/landlords-common/src/main/java/org/nico/ratel/landlords/robot/MediumRobotDecisionMakers.java index 3a16ac2..0009067 100644 --- a/landlords-common/src/main/java/org/nico/ratel/landlords/robot/MediumRobotDecisionMakers.java +++ b/landlords-common/src/main/java/org/nico/ratel/landlords/robot/MediumRobotDecisionMakers.java @@ -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); diff --git a/landlords-server/pom.xml b/landlords-server/pom.xml index 3a7f0d2..fd249e0 100644 --- a/landlords-server/pom.xml +++ b/landlords-server/pom.xml @@ -9,7 +9,7 @@ com.smallnico.ratel landlords - 1.2.4 + 1.2.5 @@ -20,7 +20,7 @@ com.smallnico.ratel landlords-common - 1.2.4 + 1.2.5 diff --git a/pom.xml b/pom.xml index 492d982..c196f2f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.smallnico.ratel landlords - 1.2.4 + 1.2.5 ratel https://github.com/ainilili/ratel pom