Giter Club home page Giter Club logo

lczero-client's Introduction

Compiling

You will need to install Go 1.9 or later.

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 lczero-client directory as the second.

Pre-reqs:

# (Bug workaround, using Tilps instead)
# go get -u github.com/notnil/chess
go get -u github.com/Tilps/chess

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 lczero-client executable.

Then, run! Username and password are required parameters.

./lczero-client --user=myusername --password=mypassword

For testing, you can also point the client at a different server:

./lczero-client --hostname=http://127.0.0.1:8080 --user=test --password=asdf

Cross-compiling

One of the main reasons I picked go was it's amazing support for cross-compiling.

Pre-reqs:

GOOS=windows GOARCH=amd64 go install
GOOS=darwin GOARCH=amd64 go install
GOOS=linux GOARCH=amd64 go install

Building the client for each platform:

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

lczero-client's People

Contributors

jnewlin12345 avatar glinscott avatar tilps avatar killerducky avatar uriopass avatar borg323 avatar jjoshua2 avatar blin00 avatar jkiliani avatar akababa avatar error323 avatar prcuvu avatar wakamex avatar

Watchers

James Cloos avatar Xusheng Li avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.