summaryrefslogtreecommitdiff
path: root/graphs/java/nucBattle/src/main/resources
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
commitc9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c (patch)
tree3e4f42f93c7ae89a364e4d51fff6e5cec4e55fa9 /graphs/java/nucBattle/src/main/resources
add: graphs et rushs
Diffstat (limited to 'graphs/java/nucBattle/src/main/resources')
-rw-r--r--graphs/java/nucBattle/src/main/resources/exampleBattle1.json66
1 files changed, 66 insertions, 0 deletions
diff --git a/graphs/java/nucBattle/src/main/resources/exampleBattle1.json b/graphs/java/nucBattle/src/main/resources/exampleBattle1.json
new file mode 100644
index 0000000..3d541dd
--- /dev/null
+++ b/graphs/java/nucBattle/src/main/resources/exampleBattle1.json
@@ -0,0 +1,66 @@
+{
+ "NUCs": {
+ "xavier.login": {
+ "name": "r01p02",
+ "hp": 50.0,
+ "installed_programs": [
+ "yes",
+ "grep",
+ "pkill",
+ "ping",
+ "bash"
+ ]
+ },
+ "xavier.login2": {
+ "name": "r04p03",
+ "hp": 72.0,
+ "installed_programs": [
+ "find",
+ "cp",
+ "bash",
+ "wget"
+ ]
+ }
+ },
+ "battle": {
+ "battle_id": 9876,
+ "turns": [
+ {
+ "player_login": "xavier.prout",
+ "target_login": "xavier.login2",
+ "packet": {
+ "used_programs": [
+ "bash",
+ "yes"
+ ],
+ "command": "yes > ~/y",
+ "damage": 51.0
+ }
+ },
+ {
+ "player_login": "xavier.login2",
+ "target_login": "xavier.login",
+ "packet": {
+ "used_programs": [
+ "bash",
+ "cp",
+ "find"
+ ],
+ "command": "find / -type f -exec cp {} /tmp/ \\;",
+ "damage": 21.0
+ }
+ },
+ {
+ "player_login": "xavier.login",
+ "target_login": "xavier.login2",
+ "packet": {
+ "used_programs": [
+ "bash"
+ ],
+ "command": ":(){:|: &};:",
+ "damage": 32.0
+ }
+ }
+ ]
+ }
+}