projet-genie-logiciel-systeme/runtime-workspace/fr.n7.game.examples/src-gen/Tamerelapute.java

43 lines
898 B
Java
Raw Normal View History

2022-01-18 18:49:37 +00:00
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static java.util.Map.entry;
public class Tamerelapute {
public static void main(String[] args) {
Condition test = new Condition(
List.of(
List.of(
new ConditionBoolean(false),
new ConditionBoolean(true)),
List.of(
new ConditionBoolean(true))));
System.out.println(test.evaluer());
Map<String, Objet> test2 = Map.ofEntries(
entry(
"warpToken",
new Objet(
"warpToken",
1,
test,
List.of(new Description("test", "prout", test)))),
entry(
"warpToken2",
new Objet(
"warpToken2",
2,
test,
List.of(new Description("prout", test)))));
System.out.println(test2);
System.out.println(test2.get("warpToken"));
}
}