ninjask 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. ninjask-0.1.0/CHANGELOG.md +13 -0
  2. ninjask-0.1.0/Cargo.lock +336 -0
  3. ninjask-0.1.0/Cargo.toml +37 -0
  4. ninjask-0.1.0/LICENSE +21 -0
  5. ninjask-0.1.0/NOTICE +49 -0
  6. ninjask-0.1.0/PKG-INFO +366 -0
  7. ninjask-0.1.0/README.md +345 -0
  8. ninjask-0.1.0/examples/bench.rs +56 -0
  9. ninjask-0.1.0/examples/damage_check.rs +52 -0
  10. ninjask-0.1.0/examples/fingerprint.rs +134 -0
  11. ninjask-0.1.0/pyproject.toml +47 -0
  12. ninjask-0.1.0/python/ninjask/__init__.py +334 -0
  13. ninjask-0.1.0/python/ninjask/_core.pyi +89 -0
  14. ninjask-0.1.0/python/ninjask/_extension.py +48 -0
  15. ninjask-0.1.0/python/ninjask/choices.py +173 -0
  16. ninjask-0.1.0/python/ninjask/data/formats/gen9championsdoublescustomgame.json +1 -0
  17. ninjask-0.1.0/python/ninjask/data/formats/gen9championsvgc2026regmb.json +1 -0
  18. ninjask-0.1.0/python/ninjask/data/formats/gen9championsvgc2026regmc.json +1 -0
  19. ninjask-0.1.0/python/ninjask/data/formats/gen9championsvgc2026regmcots.json +1 -0
  20. ninjask-0.1.0/python/ninjask/data/regmc_teams.txt +4 -0
  21. ninjask-0.1.0/python/ninjask/format.py +130 -0
  22. ninjask-0.1.0/python/ninjask/ids.py +8 -0
  23. ninjask-0.1.0/python/ninjask/paths.py +68 -0
  24. ninjask-0.1.0/python/ninjask/play.py +89 -0
  25. ninjask-0.1.0/python/ninjask/policy.py +35 -0
  26. ninjask-0.1.0/python/ninjask/py.typed +0 -0
  27. ninjask-0.1.0/python/ninjask/refsim.py +156 -0
  28. ninjask-0.1.0/python/ninjask/tracker_check.py +480 -0
  29. ninjask-0.1.0/python/ninjask/verify.py +421 -0
  30. ninjask-0.1.0/python/ninjask/world_check.py +196 -0
  31. ninjask-0.1.0/src/abilities/copy.rs +127 -0
  32. ninjask-0.1.0/src/abilities/forms.rs +132 -0
  33. ninjask-0.1.0/src/abilities/illusion.rs +69 -0
  34. ninjask-0.1.0/src/abilities/mod.rs +1208 -0
  35. ninjask-0.1.0/src/battle/bookkeeping.rs +151 -0
  36. ninjask-0.1.0/src/battle/choices.rs +852 -0
  37. ninjask-0.1.0/src/battle/log.rs +176 -0
  38. ninjask-0.1.0/src/battle/mod.rs +1039 -0
  39. ninjask-0.1.0/src/battle/queries.rs +106 -0
  40. ninjask-0.1.0/src/battle/queue.rs +651 -0
  41. ninjask-0.1.0/src/battle/switching.rs +724 -0
  42. ninjask-0.1.0/src/boosts.rs +161 -0
  43. ninjask-0.1.0/src/calc.rs +1339 -0
  44. ninjask-0.1.0/src/conditions/mod.rs +15 -0
  45. ninjask-0.1.0/src/conditions/pseudo_weather.rs +168 -0
  46. ninjask-0.1.0/src/conditions/side.rs +230 -0
  47. ninjask-0.1.0/src/conditions/slot.rs +173 -0
  48. ninjask-0.1.0/src/conditions/status.rs +113 -0
  49. ninjask-0.1.0/src/conditions/terrain.rs +104 -0
  50. ninjask-0.1.0/src/conditions/volatiles.rs +877 -0
  51. ninjask-0.1.0/src/conditions/weather.rs +240 -0
  52. ninjask-0.1.0/src/dex/events.rs +178 -0
  53. ninjask-0.1.0/src/dex/known.rs +90 -0
  54. ninjask-0.1.0/src/dex/mod.rs +862 -0
  55. ninjask-0.1.0/src/dex/support.rs +182 -0
  56. ninjask-0.1.0/src/dex/team.rs +178 -0
  57. ninjask-0.1.0/src/dex/types.rs +477 -0
  58. ninjask-0.1.0/src/events/damaging_hit.rs +344 -0
  59. ninjask-0.1.0/src/events/immunity.rs +286 -0
  60. ninjask-0.1.0/src/events/mod.rs +9 -0
  61. ninjask-0.1.0/src/events/modifiers.rs +676 -0
  62. ninjask-0.1.0/src/events/residual.rs +1300 -0
  63. ninjask-0.1.0/src/events/switch_in.rs +345 -0
  64. ninjask-0.1.0/src/events/trap.rs +153 -0
  65. ninjask-0.1.0/src/events/update.rs +210 -0
  66. ninjask-0.1.0/src/items/berries.rs +352 -0
  67. ninjask-0.1.0/src/items/fling.rs +154 -0
  68. ninjask-0.1.0/src/items/mod.rs +564 -0
  69. ninjask-0.1.0/src/items/transfer.rs +71 -0
  70. ninjask-0.1.0/src/kinds/abilities.rs +601 -0
  71. ninjask-0.1.0/src/kinds/items.rs +226 -0
  72. ninjask-0.1.0/src/kinds/mod.rs +25 -0
  73. ninjask-0.1.0/src/kinds/moves.rs +750 -0
  74. ninjask-0.1.0/src/lib.rs +36 -0
  75. ninjask-0.1.0/src/moves/after_hit.rs +767 -0
  76. ninjask-0.1.0/src/moves/called.rs +235 -0
  77. ninjask-0.1.0/src/moves/damage.rs +882 -0
  78. ninjask-0.1.0/src/moves/field_moves.rs +450 -0
  79. ninjask-0.1.0/src/moves/hit.rs +1210 -0
  80. ninjask-0.1.0/src/moves/mod.rs +17 -0
  81. ninjask-0.1.0/src/moves/multihit.rs +156 -0
  82. ninjask-0.1.0/src/moves/status_moves.rs +1435 -0
  83. ninjask-0.1.0/src/moves/targeting.rs +287 -0
  84. ninjask-0.1.0/src/moves/two_turn.rs +331 -0
  85. ninjask-0.1.0/src/moves/use_move.rs +1550 -0
  86. ninjask-0.1.0/src/projection/import.rs +525 -0
  87. ninjask-0.1.0/src/projection/mod.rs +413 -0
  88. ninjask-0.1.0/src/projection/volatiles.rs +594 -0
  89. ninjask-0.1.0/src/python.rs +456 -0
  90. ninjask-0.1.0/src/rng.rs +265 -0
  91. ninjask-0.1.0/src/state/action.rs +96 -0
  92. ninjask-0.1.0/src/state/active_move.rs +98 -0
  93. ninjask-0.1.0/src/state/field.rs +118 -0
  94. ninjask-0.1.0/src/state/mod.rs +13 -0
  95. ninjask-0.1.0/src/state/mon.rs +483 -0
  96. ninjask-0.1.0/src/state/side.rs +232 -0
  97. ninjask-0.1.0/src/tracker.rs +2969 -0
  98. ninjask-0.1.0/src/transform.rs +123 -0
  99. ninjask-0.1.0/src/world.rs +873 -0
  100. ninjask-0.1.0/tests/calc.rs +188 -0
  101. ninjask-0.1.0/tests/common/mod.rs +28 -0
  102. ninjask-0.1.0/tests/fixtures/regmc_teams.txt +4 -0
  103. ninjask-0.1.0/tests/python/test_choices.py +119 -0
  104. ninjask-0.1.0/tests/python/test_engine.py +528 -0
  105. ninjask-0.1.0/tests/python/test_format.py +73 -0
  106. ninjask-0.1.0/tests/python/test_imports.py +50 -0
  107. ninjask-0.1.0/tests/python/test_refsim.py +99 -0
  108. ninjask-0.1.0/tests/team.rs +67 -0
  109. ninjask-0.1.0/tests/tracker_durations.rs +120 -0
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ First public release.
6
+
7
+ - Pokémon Champions VGC doubles (Reg M-C) engine in Rust, matching Pokémon
8
+ Showdown at the pinned commit (`refsim/SHOWDOWN_COMMIT`) log line for log
9
+ line in reference mode, on every supported move, item and ability.
10
+ - Python bindings (`ninjask`): `Dex`, `Battle`, `Tracker`, worlds for
11
+ search, the damage and turn-order calculation, and the parity checks.
12
+ - The Python package bundles the format exports for Reg M-C (closed and open
13
+ team sheets), Reg M-B and the Champions doubles custom game.
@@ -0,0 +1,336 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "arrayvec"
7
+ version = "0.7.8"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
10
+
11
+ [[package]]
12
+ name = "autocfg"
13
+ version = "1.5.1"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
16
+
17
+ [[package]]
18
+ name = "crossbeam-deque"
19
+ version = "0.8.8"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
22
+ dependencies = [
23
+ "crossbeam-epoch",
24
+ "crossbeam-utils",
25
+ ]
26
+
27
+ [[package]]
28
+ name = "crossbeam-epoch"
29
+ version = "0.9.21"
30
+ source = "registry+https://github.com/rust-lang/crates.io-index"
31
+ checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
32
+ dependencies = [
33
+ "crossbeam-utils",
34
+ ]
35
+
36
+ [[package]]
37
+ name = "crossbeam-utils"
38
+ version = "0.8.23"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
41
+
42
+ [[package]]
43
+ name = "either"
44
+ version = "1.19.0"
45
+ source = "registry+https://github.com/rust-lang/crates.io-index"
46
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
47
+
48
+ [[package]]
49
+ name = "equivalent"
50
+ version = "1.0.3"
51
+ source = "registry+https://github.com/rust-lang/crates.io-index"
52
+ checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
53
+
54
+ [[package]]
55
+ name = "foldhash"
56
+ version = "0.2.0"
57
+ source = "registry+https://github.com/rust-lang/crates.io-index"
58
+ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
59
+
60
+ [[package]]
61
+ name = "hashbrown"
62
+ version = "0.17.1"
63
+ source = "registry+https://github.com/rust-lang/crates.io-index"
64
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
65
+
66
+ [[package]]
67
+ name = "heck"
68
+ version = "0.5.0"
69
+ source = "registry+https://github.com/rust-lang/crates.io-index"
70
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
71
+
72
+ [[package]]
73
+ name = "indexmap"
74
+ version = "2.14.2"
75
+ source = "registry+https://github.com/rust-lang/crates.io-index"
76
+ checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
77
+ dependencies = [
78
+ "equivalent",
79
+ "hashbrown",
80
+ ]
81
+
82
+ [[package]]
83
+ name = "indoc"
84
+ version = "2.0.8"
85
+ source = "registry+https://github.com/rust-lang/crates.io-index"
86
+ checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1"
87
+ dependencies = [
88
+ "rustversion",
89
+ ]
90
+
91
+ [[package]]
92
+ name = "itoa"
93
+ version = "1.0.18"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
96
+
97
+ [[package]]
98
+ name = "libc"
99
+ version = "0.2.190"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
102
+
103
+ [[package]]
104
+ name = "memchr"
105
+ version = "2.8.3"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
108
+
109
+ [[package]]
110
+ name = "memoffset"
111
+ version = "0.9.1"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
114
+ dependencies = [
115
+ "autocfg",
116
+ ]
117
+
118
+ [[package]]
119
+ name = "ninjask"
120
+ version = "0.1.0"
121
+ dependencies = [
122
+ "arrayvec",
123
+ "pyo3",
124
+ "rayon",
125
+ "serde",
126
+ "serde_json",
127
+ ]
128
+
129
+ [[package]]
130
+ name = "once_cell"
131
+ version = "1.21.4"
132
+ source = "registry+https://github.com/rust-lang/crates.io-index"
133
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
134
+
135
+ [[package]]
136
+ name = "portable-atomic"
137
+ version = "1.15.0"
138
+ source = "registry+https://github.com/rust-lang/crates.io-index"
139
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
140
+
141
+ [[package]]
142
+ name = "proc-macro2"
143
+ version = "1.0.107"
144
+ source = "registry+https://github.com/rust-lang/crates.io-index"
145
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
146
+ dependencies = [
147
+ "unicode-ident",
148
+ ]
149
+
150
+ [[package]]
151
+ name = "pyo3"
152
+ version = "0.25.1"
153
+ source = "registry+https://github.com/rust-lang/crates.io-index"
154
+ checksum = "8970a78afe0628a3e3430376fc5fd76b6b45c4d43360ffd6cdd40bdde72b682a"
155
+ dependencies = [
156
+ "indoc",
157
+ "libc",
158
+ "memoffset",
159
+ "once_cell",
160
+ "portable-atomic",
161
+ "pyo3-build-config",
162
+ "pyo3-ffi",
163
+ "pyo3-macros",
164
+ "unindent",
165
+ ]
166
+
167
+ [[package]]
168
+ name = "pyo3-build-config"
169
+ version = "0.25.1"
170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
171
+ checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598"
172
+ dependencies = [
173
+ "once_cell",
174
+ "target-lexicon",
175
+ ]
176
+
177
+ [[package]]
178
+ name = "pyo3-ffi"
179
+ version = "0.25.1"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c"
182
+ dependencies = [
183
+ "libc",
184
+ "pyo3-build-config",
185
+ ]
186
+
187
+ [[package]]
188
+ name = "pyo3-macros"
189
+ version = "0.25.1"
190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
191
+ checksum = "a8725c0a622b374d6cb051d11a0983786448f7785336139c3c94f5aa6bef7e50"
192
+ dependencies = [
193
+ "proc-macro2",
194
+ "pyo3-macros-backend",
195
+ "quote",
196
+ "syn 2.0.119",
197
+ ]
198
+
199
+ [[package]]
200
+ name = "pyo3-macros-backend"
201
+ version = "0.25.1"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "4109984c22491085343c05b0dbc54ddc405c3cf7b4374fc533f5c3313a572ccc"
204
+ dependencies = [
205
+ "heck",
206
+ "proc-macro2",
207
+ "pyo3-build-config",
208
+ "quote",
209
+ "syn 2.0.119",
210
+ ]
211
+
212
+ [[package]]
213
+ name = "quote"
214
+ version = "1.0.47"
215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
216
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
217
+ dependencies = [
218
+ "proc-macro2",
219
+ ]
220
+
221
+ [[package]]
222
+ name = "rayon"
223
+ version = "1.12.0"
224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
225
+ checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
226
+ dependencies = [
227
+ "either",
228
+ "rayon-core",
229
+ ]
230
+
231
+ [[package]]
232
+ name = "rayon-core"
233
+ version = "1.13.0"
234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
235
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
236
+ dependencies = [
237
+ "crossbeam-deque",
238
+ "crossbeam-utils",
239
+ ]
240
+
241
+ [[package]]
242
+ name = "rustversion"
243
+ version = "1.0.23"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
246
+
247
+ [[package]]
248
+ name = "serde"
249
+ version = "1.0.229"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
252
+ dependencies = [
253
+ "serde_core",
254
+ "serde_derive",
255
+ ]
256
+
257
+ [[package]]
258
+ name = "serde_core"
259
+ version = "1.0.229"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
262
+ dependencies = [
263
+ "serde_derive",
264
+ ]
265
+
266
+ [[package]]
267
+ name = "serde_derive"
268
+ version = "1.0.229"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
271
+ dependencies = [
272
+ "proc-macro2",
273
+ "quote",
274
+ "syn 3.0.9",
275
+ ]
276
+
277
+ [[package]]
278
+ name = "serde_json"
279
+ version = "1.0.154"
280
+ source = "registry+https://github.com/rust-lang/crates.io-index"
281
+ checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
282
+ dependencies = [
283
+ "foldhash",
284
+ "indexmap",
285
+ "itoa",
286
+ "memchr",
287
+ "serde",
288
+ "serde_core",
289
+ "zmij",
290
+ ]
291
+
292
+ [[package]]
293
+ name = "syn"
294
+ version = "2.0.119"
295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
296
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
297
+ dependencies = [
298
+ "proc-macro2",
299
+ "quote",
300
+ "unicode-ident",
301
+ ]
302
+
303
+ [[package]]
304
+ name = "syn"
305
+ version = "3.0.9"
306
+ source = "registry+https://github.com/rust-lang/crates.io-index"
307
+ checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
308
+ dependencies = [
309
+ "proc-macro2",
310
+ "quote",
311
+ "unicode-ident",
312
+ ]
313
+
314
+ [[package]]
315
+ name = "target-lexicon"
316
+ version = "0.13.5"
317
+ source = "registry+https://github.com/rust-lang/crates.io-index"
318
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
319
+
320
+ [[package]]
321
+ name = "unicode-ident"
322
+ version = "1.0.27"
323
+ source = "registry+https://github.com/rust-lang/crates.io-index"
324
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
325
+
326
+ [[package]]
327
+ name = "unindent"
328
+ version = "0.2.4"
329
+ source = "registry+https://github.com/rust-lang/crates.io-index"
330
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
331
+
332
+ [[package]]
333
+ name = "zmij"
334
+ version = "1.0.23"
335
+ source = "registry+https://github.com/rust-lang/crates.io-index"
336
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,37 @@
1
+ [package]
2
+ name = "ninjask"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ description = "Fast Pokémon VGC (Champions doubles) battle engine checked against Pokémon Showdown"
6
+ license = "MIT"
7
+ readme = "README.md"
8
+ repository = "https://github.com/dcabatin/Ninjask"
9
+ keywords = ["pokemon", "showdown", "vgc", "simulator", "battle"]
10
+ # The crate as published: the engine, its examples and tests, without the
11
+ # Python package and the reference harness (pyproject.toml ships those).
12
+ include = ["src/", "examples/", "tests/", "LICENSE", "NOTICE", "README.md", "CHANGELOG.md", "Cargo.toml", "Cargo.lock"]
13
+
14
+ [lib]
15
+ name = "ninjask"
16
+ crate-type = ["rlib", "cdylib"]
17
+
18
+ [features]
19
+ default = []
20
+ # The Python classes and `python::register`, for a crate that builds its own
21
+ # extension module around them (README, "Embedding in another extension").
22
+ python = ["dep:pyo3"]
23
+ # The `ninjask._core` extension module itself (pyproject.toml).
24
+ python-module = ["python"]
25
+
26
+ [dependencies]
27
+ serde = { version = "1", features = ["derive"] }
28
+ serde_json = { version = "1", features = ["preserve_order"] }
29
+ rayon = "1"
30
+ pyo3 = { version = "0.25", features = ["extension-module"], optional = true }
31
+ arrayvec = "0.7"
32
+
33
+ [profile.release]
34
+ opt-level = 3
35
+ lto = "thin"
36
+ codegen-units = 1
37
+ debug = 1
ninjask-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 David Cabatin and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
ninjask-0.1.0/NOTICE ADDED
@@ -0,0 +1,49 @@
1
+ NOTICE
2
+
3
+ This engine's own code is licensed under the MIT License (see LICENSE).
4
+ It contains and depends on the following third-party work.
5
+
6
+ Pokémon Showdown
7
+ ----------------
8
+ https://github.com/smogon/pokemon-showdown, commit 3a766f2cfb5e51c1e428cfe87d0dba91a8f01640
9
+
10
+ The engine's battle logic is a port of Pokémon Showdown's (the Champions mod
11
+ and the base game it builds on): damage calculation, the action queue, move,
12
+ ability, item and condition handlers, the choice syntax, the protocol log
13
+ format and the random number generator. The data the engine loads (species,
14
+ moves, abilities, items, learnsets, natures, the type chart and format rules)
15
+ is exported from the same commit by refsim/export_format.js. Pokémon Showdown
16
+ is also run as the reference simulator by the checks in scripts/, but is not
17
+ part of this repository: scripts/setup_showdown.sh clones it into
18
+ third_party/. Its license:
19
+
20
+ The MIT License (MIT)
21
+
22
+ Copyright (c) 2011-2026 Guangcong Luo and other contributors http://pokemonshowdown.com/
23
+
24
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
25
+ this software and associated documentation files (the "Software"), to deal in
26
+ the Software without restriction, including without limitation the rights to
27
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
28
+ the Software, and to permit persons to whom the Software is furnished to do so,
29
+ subject to the following conditions:
30
+
31
+ The above copyright notice and this permission notice shall be included in all
32
+ copies or substantial portions of the Software.
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
36
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
37
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
38
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
39
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
40
+
41
+ pokemon-showdown-rs
42
+ -------------------
43
+ The Rust port of Pokémon Showdown, pokemon-showdown-rs, was read for
44
+ orientation only (to see how another port structures its state). No code was
45
+ copied from it.
46
+
47
+ Pokémon and related names are trademarks of Nintendo, Creatures Inc. and
48
+ GAME FREAK inc. This project is not affiliated with or endorsed by them or by
49
+ Pokémon Showdown.