/rubygoal

RubyGoal soccer game for Rubyists

Primary LanguageRubyOtherNOASSERTION

Build Status Code Climate Inline docs

#Welcome to RubyGoal!

What is RubyGoal?

RubyGoal is a game in which you will be coaching your football team.

You will be coding your strategy in RUBY :D .

Dependencies

GNU/Linux, Make sure you have all dependencies installed.

Ubuntu/Debian:

# Gosu's dependencies for both C++ and Ruby
sudo apt-get install build-essential freeglut3-dev libfreeimage-dev libgl1-mesa-dev \
                     libopenal-dev libpango1.0-dev libsdl-ttf2.0-dev libsndfile-dev \
                     libxinerama-dev

For other distros: https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux

How do i run it?

gem install rubygoal

Run the game with example Coach

rubygoal

Run the game with your custom Coach implementation

rubygoal coach_1.rb

Run the game with your home and away Coach implementations

rubygoal coach_1.rb coach_2.rb

How do i write my own coach class?

Take a look to the already defined Coach at lib/rubygoal/coaches. Specially pay attention to the file lib/rubygoal/coaches/template.rb

Legal

All source code, except the files under the media/ folder, is licensed under the Apache License 2.0. Please see the LICENSE file under the gem root folder.

All media files under the media/ folder are licensed under the Creative Commons 4.0 Attribution license. Please see https://creativecommons.org/licenses/by/4.0/