From e693534bb9334c20e60bf7f52bf24874ee0c56ad Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 15 Jan 2023 15:42:44 +0100 Subject: [PATCH] readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 9c96330..d279a6e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Minmax in Rust with JNI +The `isWinning` method always requires Rust and calls it via JNI. For the perfect player, there are two implementations. `PerfectPlayer` which is a small alpha-beta in Java and `RustPlayer` which uses the better Rust implementation via JNI. If you can be bothered to set up `RustPlayer` then use it, if you can't then `PerfectPlayer` is fine too. + ## How to build and run ### On Linux @@ -18,4 +20,8 @@ It should probably the same as linux? except for the `cp` part apples native lib ### On Windows +on windows it only works if you are in this directory, but then it does Just Work after the rust build. + +If you want to move this player to another location on windows, you have to delete the `if (System.getProperty("os.name").toLowerCase().contains("windows"))` check and always run the not-windows path. + you're on your own but you can do this, it's similar to linux except you have to run `cargo build --release` yourself and have to `target/release/minmax_wrapper.dll` to the directories where the other library are (the link error message will tell you where that is) \ No newline at end of file