Skip to content

Commit faae4f1

Browse files
authored
Merge pull request #91 from JavaBWAPI/update-readme
add working badges & reformat readme
2 parents f854bcf + 881d64d commit faae4f1

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ jobs:
2626
java-version: ${{ matrix.java }}
2727
- name: Build with Maven
2828
run: mvn -B package --file pom.xml
29+
- name: Test with Maven
30+
run: mvn test

README.md

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,39 @@
1-
[![Build Status](https://travis-ci.org/JavaBWAPI/JBWAPI.svg?branch=develop)](https://travis-ci.org/JavaBWAPI/JBWAPI)[![Total alerts](https://img.shields.io/lgtm/alerts/g/JavaBWAPI/JBWAPI.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/JavaBWAPI/JBWAPI/alerts/)[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/JavaBWAPI/JBWAPI.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/JavaBWAPI/JBWAPI/context:java)
1+
[![Build Statues](https://github.com/JavaBWAPI/JBWAPI/actions/workflows/maven.yml/badge.svg)](https://github.com/JavaBWAPI/JBWAPI/actions/workflows/maven.yml)
2+
[![CodeQL](https://github.com/JavaBWAPI/JBWAPI/actions/workflows/codeql.yml/badge.svg)](https://github.com/JavaBWAPI/JBWAPI/actions/workflows/codeql.yml)
3+
24
# JBWAPI
35

4-
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).
59

610
Also contains a modified version of the pure Java BWEM implementation from [BWAPI4J](https://github.com/OpenBW/BWAPI4J).
711

812
## Goals
913

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.
1116
- Stay as updated as possible with the BWAPI releases.
1217

1318
## Advantages
1419

1520
- 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).
1825
- 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).
2129

2230
## 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.
2433

2534
## Usage
2635

27-
**Maven**
36+
### Maven
2837

2938
Add JitPack as a repository:
3039
```
@@ -44,7 +53,7 @@ Add JBWAPI to your dependencies in `<dependencies></dependencies>`:
4453
</dependency>
4554
```
4655

47-
**Gradle**
56+
### Gradle
4857

4958
Add JitPack as a repository:
5059
```
@@ -62,9 +71,10 @@ dependencies {
6271
}
6372
```
6473

65-
**Jar**
74+
### Jar
6675

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.
6878

6979
## Compilation
7080

@@ -76,9 +86,9 @@ or if you already have maven installed
7686

7787
## Example
7888

79-
A simple `Hello World` bot is as easy as
89+
A simple `Hello World` bot is as easy as:
8090

81-
```Java
91+
```java
8292
import bwapi.*;
8393

8494
class HelloBot extends DefaultBWListener {
@@ -106,18 +116,19 @@ You can also ask any further questions on the [SSCAIT Discord](https://discord.g
106116

107117
## Tutorial
108118

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
120+
[tutorial](https://github.com/JavaBWAPI/Java-BWAPI-Tutorial/wiki)!
111121

112122
## Bots
113123

114-
Some bots using [JBWAPI](https://github.com/JavaBWAPI/JBWAPI) (feel free to open a pullrequest to add yours!)
124+
Some bots using [JBWAPI](https://github.com/JavaBWAPI/JBWAPI) (feel free to open a pull request to add yours!)
115125

116126
- https://github.com/dgant/PurpleWave
117127
- https://github.com/Ravaelles/Atlantis
118128
- https://github.com/impie66/Kangaroo-Bot
119129

120130
## Linux
121131

122-
If you use Linux you can choose to develop normally and run the `jar` and `starcraft` using [wine](https://www.winehq.org/)
123-
or try to use `openbw` by following the following [instructions](./build_with_openbw.md)
132+
If you use Linux you can choose to develop normally and run the `jar` and `starcraft` using
133+
[wine](https://www.winehq.org/) or try to use `openbw` by following the following
134+
[instructions](./build_with_openbw.md).

0 commit comments

Comments
 (0)