You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pure Java [bwapi](https://github.com/bwapi/bwapi) 4.4.0 client implementation backed by [N00byEdge](https://github.com/N00byEdge)'s [JavaBWAPIBackend](https://github.com/N00byEdge/JavaBWAPIBackend) idea and automated by [Bytekeeper](https://github.com/Bytekeeper).
6
+
Pure Java [bwapi](https://github.com/bwapi/bwapi) 4.4.0 client implementation backed by
7
+
[N00byEdge](https://github.com/N00byEdge)'s [JavaBWAPIBackend](https://github.com/N00byEdge/JavaBWAPIBackend) idea and
8
+
automated by [Bytekeeper](https://github.com/Bytekeeper).
5
9
6
10
Also contains a modified version of the pure Java BWEM implementation from [BWAPI4J](https://github.com/OpenBW/BWAPI4J).
7
11
8
12
## Goals
9
13
10
-
- Have a similar (Java) interface to BWMirror to make porting BWMirror bots easy without all the DLL and JNI hassle and overhead.
14
+
- Have a similar (Java) interface to BWMirror to make porting BWMirror bots easy without all the DLL and JNI hassle and
15
+
overhead.
11
16
- Stay as updated as possible with the BWAPI releases.
12
17
13
18
## Advantages
14
19
15
20
- No dependency on external DLL's.
16
-
- At least [5x](https://github.com/JavaBWAPI/JBWAPI/issues/17) faster compared to BWMirror for primitives as it directly reads the memory mapped client file. Even faster for BWAPI objects as it also avoids type marshalling
17
-
- Supports both 32 and 64 bit Java (e.g. [deeplearning4j](https://deeplearning4j.org/) requires 64 bit Java which bwmirror doesn't support).
21
+
- At least [5x](https://github.com/JavaBWAPI/JBWAPI/issues/17) faster compared to BWMirror for primitives as it
22
+
directly reads the memory mapped client file. Even faster for BWAPI objects as it also avoids marshalling.
23
+
- Supports both 32-and 64-bit Java (e.g. [deeplearning4j](https://deeplearning4j.org/) requires 64-bit Java which
24
+
BWMirror doesn't support).
18
25
- BWEM instead of BWTA as map analyser.
19
-
- Supports Linux "natively" using [openbw](https://github.com/JavaBWAPI/JBWAPI/pull/73), made possible by by [ByteKeeper](https://github.com/Bytekeeper)
20
-
-`Async` support for realtime tournament constraints, made possible by [dgant](https://github.com/dgant)
26
+
- Supports Linux "natively" using [openbw](https://github.com/JavaBWAPI/JBWAPI/pull/73), made possible by
27
+
[ByteKeeper](https://github.com/Bytekeeper).
28
+
-`Async` support for realtime tournament constraints, made possible by [dgant](https://github.com/dgant).
21
29
22
30
## Warnings
23
-
- A fake BWTA is provided for easier porting from BWMirror, but it translates BWTA calls to their respective BWEM calls, so specific Regions/Chokepoints etc. may differ.
31
+
- A fake BWTA is provided for an easier transition from BWMirror. However, it translates BWTA calls to their respective
32
+
BWEM calls, so specific Regions/Chokepoints etc. may differ.
24
33
25
34
## Usage
26
35
27
-
**Maven**
36
+
### Maven
28
37
29
38
Add JitPack as a repository:
30
39
```
@@ -44,7 +53,7 @@ Add JBWAPI to your dependencies in `<dependencies></dependencies>`:
44
53
</dependency>
45
54
```
46
55
47
-
**Gradle**
56
+
### Gradle
48
57
49
58
Add JitPack as a repository:
50
59
```
@@ -62,9 +71,10 @@ dependencies {
62
71
}
63
72
```
64
73
65
-
**Jar**
74
+
### Jar
66
75
67
-
Alternatively add the latest .jar from the [releases](https://github.com/JavaBWAPI/JBWAPI/releases) page to your project.
76
+
Alternatively add the latest `.jar` from the [releases](https://github.com/JavaBWAPI/JBWAPI/releases) page to your
77
+
project.
68
78
69
79
## Compilation
70
80
@@ -76,9 +86,9 @@ or if you already have maven installed
76
86
77
87
## Example
78
88
79
-
A simple `Hello World` bot is as easy as
89
+
A simple `Hello World` bot is as easy as:
80
90
81
-
```Java
91
+
```java
82
92
importbwapi.*;
83
93
84
94
classHelloBotextendsDefaultBWListener {
@@ -106,18 +116,19 @@ You can also ask any further questions on the [SSCAIT Discord](https://discord.g
106
116
107
117
## Tutorial
108
118
109
-
If you are a just starting out with bot development, it might be helpful to follow the[tutorial](https://github.com/JavaBWAPI/Java-BWAPI-Tutorial/wiki)!
110
-
119
+
If you are a just starting out with bot development, it might be helpful to follow the
0 commit comments