Module: Swint

Defined in:
lib/swint/map.rb,
lib/swint/game.rb,
lib/swint/field.rb,
lib/swint/result.rb,
lib/swint/_constants.rb,
lib/swint/class_robot.rb,
lib/swint/xmlrpc_robot.rb,
lib/swint/abstract_robot.rb

Overview

© 2008-01-07 Philipp Hofmann <[email protected]>

Defined Under Namespace

Classes: AbstractRobot, ClassRobot, Field, Game, Map, Result, XmlrpcRobot

Constant Summary collapse

CHAR =
{
	:free    => '_',
	:object  => 'o',
	:start   => 'S',
	:goal    => 'G',
	:outside => '#',
	:energy  => '!'
}
DIRV =
[
	[-1, +1],
	[-1,  0],
	[ 0, -1],
	[+1, -1],
	[+1,  0],
	[ 0, +1]
]

Class Method Summary collapse

Class Method Details

.rotate_map!Object



26
27
28
# File 'lib/swint/_constants.rb', line 26

def Swint.rotate_map!
	DIRV.push DIRV.shift, DIRV.shift, DIRV.shift
end