Space Tyckiting Rust client
Synopsis
cargo build
cargo run -- # [options]
Prerequisites
If you don't have qualms with running scripts from the Internet without checking, you can.
curl -s https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly --date=2015-04-24
Setup with Docker
sudo docker build -t rust-tyckiting .
sudo docker run -ti -v $(pwd)/src:/source/src rust-tyckiting bash
And then follow from the top.
Prerequisites with Docker
- Docker
- If you don't have a suitable kernel running (e.g. you are on OS X or Windows) you might want to check out Docker machine.
How to start with a new AI
Take a look at src/ai/mod.rs
. There is a RandomAI
that does random stuff which you can take as an example to copy the structure. You have to add your AI also to the function from_name
in the same file so it becomes user selectable.
Testing
You can add your tests as functions with #[test] before them and run all of them with
cargo test
There are some examples of tests in the code base.
Editors
At least Vim and Emacs have packages in the usual places. Sublime Text seems to have one too. Online search engine of your choice is your friend.