Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

rossmacarthur/halite3-rust-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-halite3-starter

This is an alternate Rust starter kit to the one provided in Halite III.

Additional features include:

  • A lot more documentation.
  • Use the log and simplelog crate so that the debug!, info! macros can be used for logging.
  • Allow adding of Direction and Offset structs to Position structs. Subtracting two Positions returns an Offset.
  • Derive Display/Into/From traits for ID new types so that they can be used like usizes.
  • Add CLI for renaming the bot, overriding the log filename, and enabling/disabling logging.
  • Use the failure crate for better error handling.
  • Collect all constants from the Halite game engine.
  • More idiomatic interaction with the Halite game engine.
  • Improved API (in my opinion).

CLI options

my_bot 0.1.0

My Halite III bot. See https://halite.io.

USAGE:
    my_bot [FLAGS] [OPTIONS]

FLAGS:
    -d, --debug      Whether to enable logging
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -l, --log-file <filename>    Override the name of the log file
    -n, --name <name>            Override the name of the bot

About

An alternate Rust Halite III starter kit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages