Updated README.md

This commit is contained in:
Coeuvre 2014-07-30 09:36:34 +08:00
parent 51da5b9a9c
commit d58d71a56f

View file

@ -11,13 +11,25 @@ Use arrow key to move tiles.
## Building Instructions ## Building Instructions
Clone [piston-workspace](https://github.com/PistonDevelopers/piston-workspace) and build it (You can follow the instructions in that repo). To build this repository, you need [Cargo](https://github.com/rust-lang/cargo).
Copy all the `syslink` files to 'target/cpu-vendor-os/lib/':
In the Terminal window, navigate to the project folder and type:
Clone this repository
``` ```
make run git clone https://github.com/Coeuvre/rust-2048.git
```
Use Cargo to build
```
cargo build
```
Move binary to `bin` directory
```
mv ./target/rust-2048 ./bin
```
Play!
```
./bin/rust-2048
``` ```