Make PluginLoader a singleton.
[kaya.git] / lib / games / shogi / main.rb
blobe75914f082aca4f452dc055b11629ca0ba174ff0
1 require 'games/shogi/state'
2 require 'games/shogi/pool'
3 require 'games/shogi/move'
4 require 'games/shogi/validator'
5 require 'games/shogi/policy'
7 module Shogi
9 Game.add :shogi, [:chess] do |chess|
10   Game.new :size => Point.new(9, 9),
11            :state => lambda { State.new(board.new, pool, move, piece) },
12            :board => lambda { chess.board_component.new size },
13            :pool => Pool,
14            :policy => Policy.new(Move, Validator),
15            :move => Move,
16            :animator => chess.animator,
17            :validator => Validator,
18            :piece => chess.piece,
19            :keywords => %w(shogi),
20            :players => [:black, :white],
21            :types => [:pawn, :lance, :horse, :silver, :gold, :bishop, :rook, :king]
22 end
24 end