1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
13 Hash.new.tap do |elements|
14 elements[:board] = Board.new(scene, theme, game)
15 elements[:pools] = if game.respond_to? :pool
16 game.players.inject({}) do |res, player|
17 res[player] = Pool.new(scene, theme, game)
23 clock_class = loader.get_matching(:clock)
24 elements[:clocks] = game.players.inject({}) do |res, player|
25 res[player] = clock_class.new(scene)