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.
8 require 'interaction/match'
16 attr_reader :color, :name
18 # create a new ICS player playing with
19 # the given color and using the given
20 # output channel to send moves
21 def initialize(out, color, serializer, name)
24 @serializer = serializer
29 text = @serializer.serialize(data[:move], data[:old_state])