Skip to content

Commit 9064145

Browse files
author
nicol
committed
pom updates
1 parent 5ffe9ff commit 9064145

3 files changed

Lines changed: 33 additions & 119 deletions

File tree

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<slf4j.version>2.1.0-alpha1</slf4j.version>
6767
<rhino.version>1.9.1</rhino.version>
6868
<commonmark.version>0.30.0</commonmark.version>
69-
<langchain4j.version>1.19.0</langchain4j.version>
69+
<langchain4j.version>1.20.0</langchain4j.version>
7070
<telegram.version>10.2.1</telegram.version>
7171
</properties>
7272

@@ -230,7 +230,7 @@
230230
<dependency>
231231
<groupId>com.squareup.okio</groupId>
232232
<artifactId>okio-jvm</artifactId>
233-
<version>3.18.1</version>
233+
<version>3.18.2</version>
234234
<scope>runtime</scope>
235235
</dependency>
236236
<dependency>
@@ -296,7 +296,7 @@
296296
<dependency>
297297
<groupId>org.jolokia</groupId>
298298
<artifactId>jolokia-jvm</artifactId>
299-
<version>1.7.2</version>
299+
<version>1.7.3</version>
300300
</dependency>
301301
<dependency>
302302
<groupId>org.apache.artemis</groupId>
@@ -439,7 +439,7 @@
439439
<dependency>
440440
<groupId>com.h2database</groupId>
441441
<artifactId>h2</artifactId>
442-
<version>2.4.240</version>
442+
<version>2.4.250</version>
443443
</dependency>
444444
<dependency>
445445
<groupId>com.github.nicho92</groupId>
@@ -464,7 +464,7 @@
464464
<dependency>
465465
<groupId>org.jooq</groupId>
466466
<artifactId>jooq</artifactId>
467-
<version>3.21.7</version>
467+
<version>3.21.8</version>
468468
</dependency>
469469
<dependency>
470470
<groupId>com.icoderman</groupId>
@@ -667,7 +667,7 @@
667667
<dependency>
668668
<groupId>com.mchange</groupId>
669669
<artifactId>c3p0</artifactId>
670-
<version>0.14.1</version>
670+
<version>0.14.2</version>
671671
</dependency>
672672
<dependency>
673673
<groupId>com.zaxxer</groupId>

src/main/java/org/beta/GuessGameGUI.java

Lines changed: 0 additions & 112 deletions
This file was deleted.

src/main/java/org/magic/services/GuessGameService.java

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.io.IOException;
44
import java.util.ArrayList;
55
import java.util.List;
6+
import java.util.Scanner;
67

78
import org.magic.api.beans.MTGCard;
89
import org.magic.api.pictures.impl.ScryFallPicturesProvider;
@@ -27,6 +28,31 @@ public void init() throws IOException
2728
init(card);
2829
}
2930

31+
public static void main(String[] args) throws IOException {
32+
33+
var game = new GuessGameService();
34+
game.init();
35+
36+
37+
try (Scanner input = new Scanner(System.in)) {
38+
System.out.println(game.getCurrent().getName());
39+
System.out.println(game.getCurrent().getText());
40+
System.out.println("======================START");
41+
42+
for(int i =0;i<5;i++)
43+
{
44+
game.suggest(input.next().charAt(0));
45+
46+
System.out.println(game.getCurrent().getName());
47+
System.out.println(game.getCurrent().getText());
48+
}
49+
System.out.println("======================RESULT");
50+
System.out.println(game.getResult().getName());
51+
System.out.println(game.getResult().getText());
52+
}
53+
}
54+
55+
3056

3157
private void init(MTGCard mc)
3258
{
@@ -81,7 +107,7 @@ public void suggest( Character l) {
81107
current = BeanTools.cloneBean(result);
82108
current.setName(anonymise(result.getName()));
83109
current.setText(anonymise(result.getText()));
84-
110+
85111
} catch (Exception e) {
86112
e.printStackTrace();
87113
}

0 commit comments

Comments
 (0)