Project

scuby-wars

0.0
No commit activity in last 3 years
No release in over 3 years
Library for programming little AI-Bots, fighting against each other
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.1
>= 0.5.0
>= 0.7.8
 Project Readme

scuby-wars¶ ↑

Scuby-Wars is a little game where you have to implement your own AI-bots who will fight on a server against each other.

How to write your own Bot¶ ↑

You have to implement a class which inherits from ScubyWars::Client

class AndisBot < ScubyWars::Client
end

now you have to implement on method called think

class AndisBot < ScubyWars::Client

  def think
    # do your intelligent stuff here
  end

end

in your instance you can access the attribute world which has all informations about the world. And there are several methods you can call to control your bot:

run
stop
fire
cease_fire
turn_left
turn_right
stop_turning

Connect your bot¶ ↑

YourBot.new("server.address:port", "YourName").join()

Note on Patches/Pull Requests¶ ↑

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2011 Andi Bade. See LICENSE for details.