Skip to content

Commit

Permalink
Merge pull request #27 from LeelaChessZero/master
Browse files Browse the repository at this point in the history
Update release to latest master v15.
  • Loading branch information
jnewlin12345 authored Jul 6, 2018
2 parents 1234bb2 + e049551 commit 56b8e27
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 109 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Then, make sure to set up your GOPATH properly, eg. here is mine:
```
export GOPATH=${HOME}/go:${HOME}/src/lczero-client
```
Here, I've set my system install of go as the first entry, and then the leela-chess/go directory as the second.
Here, I've set my system install of go as the first entry, and then the lczero-client directory as the second.

Pre-reqs:
```
Expand All @@ -16,20 +16,24 @@ go get -u github.com/Tilps/chess
```

Then you just need to `go build`, and it should produce a `client` executable.
Pull or download the `master` branch

Then to produce a `lczero-client` executable:
`go build main.go` for the `main` client
`go build lc0_main.go` for the `lc0` client

# Running

First copy the `lczero` executable into the same folder as the `client` executable.
First copy the `lczero` executable into the same folder as the `lczero-client` executable.

Then, run! Username and password are required parameters.
```
./client --user=myusername --password=mypassword
./lczero-client --user=myusername --password=mypassword
```

For testing, you can also point the client at a different server:
```
./client --hostname=http://127.0.0.1:8080 --user=test --password=asdf
./lczero-client --hostname=http://127.0.0.1:8080 --user=test --password=asdf
```

# Cross-compiling
Expand All @@ -45,7 +49,7 @@ GOOS=linux GOARCH=amd64 go install

Building the client for each platform:
```
GOOS=windows GOARCH=amd64 go build -o client.exe
GOOS=darwin GOARCH=amd64 go build -o client_mac
GOOS=linux GOARCH=amd64 go build -o client_linux
GOOS=windows GOARCH=amd64 go build -o lczero-client.exe
GOOS=darwin GOARCH=amd64 go build -o lczero-client_mac
GOOS=linux GOARCH=amd64 go build -o lczero-client_linux
```
Loading

0 comments on commit 56b8e27

Please sign in to comment.