Permalink
Browse files

Add licence and installation instructions.

  • Loading branch information...
1 parent 482b0b3 commit 97e2df0f2005b8ed8a0274375870c8c570942739 @pcapriotti committed Jun 29, 2009
Showing with 1,215 additions and 0 deletions.
  1. +2 −0 AUTHORS
  2. +340 −0 COPYING
  3. +26 −0 INSTALL
  4. +7 −0 lib/animation_field.rb
  5. +7 −0 lib/animations.rb
  6. +7 −0 lib/animator_helper.rb
  7. +7 −0 lib/board/board.rb
  8. +7 −0 lib/board/item_bag.rb
  9. +7 −0 lib/board/notify.rb
  10. +7 −0 lib/board/point_converter.rb
  11. +7 −0 lib/board/pool.rb
  12. +7 −0 lib/board/pool_animator.rb
  13. +7 −0 lib/board/scene.rb
  14. +7 −0 lib/board/square_tag.rb
  15. +7 −0 lib/board/table.rb
  16. +7 −0 lib/clock.rb
  17. +7 −0 lib/console.rb
  18. +7 −0 lib/constrained_text_item.rb
  19. +7 −0 lib/controller.rb
  20. +7 −0 lib/engine_prefs.rb
  21. +7 −0 lib/ext/extconf.rb
  22. +7 −0 lib/ext/loader.rb
  23. +7 −0 lib/factory.rb
  24. +7 −0 lib/filewriter.rb
  25. +7 −0 lib/games/all.rb
  26. +7 −0 lib/games/chess/animator.rb
  27. +7 −0 lib/games/chess/board.rb
  28. +7 −0 lib/games/chess/move.rb
  29. +7 −0 lib/games/chess/pgn.rb
  30. +7 −0 lib/games/chess/piece.rb
  31. +7 −0 lib/games/chess/policy.rb
  32. +7 −0 lib/games/chess/san.rb
  33. +7 −0 lib/games/chess/serializer.rb
  34. +7 −0 lib/games/chess/state.rb
  35. +7 −0 lib/games/chess/validator.rb
  36. +7 −0 lib/games/game_actions.rb
  37. +7 −0 lib/games/games.rb
  38. +7 −0 lib/games/serializer_base.rb
  39. +7 −0 lib/games/shogi/move.rb
  40. +7 −0 lib/games/shogi/notation.rb
  41. +7 −0 lib/games/shogi/piece.rb
  42. +7 −0 lib/games/shogi/policy.rb
  43. +7 −0 lib/games/shogi/pool.rb
  44. +7 −0 lib/games/shogi/psn.rb
  45. +7 −0 lib/games/shogi/serializer.rb
  46. +7 −0 lib/games/shogi/state.rb
  47. +7 −0 lib/games/shogi/validator.rb
  48. +7 −0 lib/games/state_base.rb
  49. +7 −0 lib/games/validable.rb
  50. +7 −0 lib/games/validator_base.rb
  51. +7 −0 lib/helpers/animation_test_helper.rb
  52. +7 −0 lib/helpers/stubs.rb
  53. +7 −0 lib/helpers/validation_helper.rb
  54. +7 −0 lib/history.rb
  55. +7 −0 lib/ics/connection.rb
  56. +7 −0 lib/ics/driver.rb
  57. +7 −0 lib/ics/example/main.rb
  58. +7 −0 lib/ics/example/window.rb
  59. +7 −0 lib/ics/icsapi.rb
  60. +7 −0 lib/ics/icsplayer.rb
  61. +7 −0 lib/ics/match_handler.rb
  62. +7 −0 lib/ics/protocol.rb
  63. +7 −0 lib/ics/style12.rb
  64. +7 −0 lib/interaction/match.rb
  65. +7 −0 lib/item.rb
  66. +7 −0 lib/kaya.rb
  67. +7 −0 lib/mainwindow.rb
  68. +7 −0 lib/newgame.rb
  69. +7 −0 lib/observer_utils.rb
  70. +7 −0 lib/plugins/background.rb
  71. +7 −0 lib/plugins/celtic/celtic.rb
  72. +7 −0 lib/plugins/clocks/digital.rb
  73. +7 −0 lib/plugins/engines/gnushogi.rb
  74. +7 −0 lib/plugins/engines/loader.rb
  75. +7 −0 lib/plugins/engines/xboard.rb
  76. +7 −0 lib/plugins/fantasy/fantasy.rb
  77. +7 −0 lib/plugins/games/chess.rb
  78. +7 −0 lib/plugins/games/shogi.rb
  79. +7 −0 lib/plugins/layouts/cool/cool.rb
  80. +7 −0 lib/plugins/layouts/layouts.rb
  81. +7 −0 lib/plugins/loader.rb
  82. +7 −0 lib/plugins/movelist/simple_movelist.rb
  83. +7 −0 lib/plugins/plugin.rb
  84. +7 −0 lib/plugins/shadow.rb
  85. +7 −0 lib/plugins/shogi/shogi.rb
  86. +7 −0 lib/plugins/squares/default.rb
  87. +7 −0 lib/plugins/svg_theme.rb
  88. +7 −0 lib/point.rb
  89. +7 −0 lib/qtutils.rb
  90. +7 −0 main.rb
  91. +7 −0 test/board/test_point_converter.rb
  92. +7 −0 test/board/test_square_tag.rb
  93. +7 −0 test/games/chess/test_chess_animator.rb
  94. +7 −0 test/games/chess/test_chess_attack.rb
  95. +7 −0 test/games/chess/test_chess_board.rb
  96. +7 −0 test/games/chess/test_chess_move.rb
  97. +7 −0 test/games/chess/test_chess_perform_moves.rb
  98. +7 −0 test/games/chess/test_chess_piece.rb
  99. +7 −0 test/games/chess/test_chess_policy.rb
  100. +7 −0 test/games/chess/test_chess_serializer.rb
  101. +7 −0 test/games/chess/test_chess_state.rb
  102. +7 −0 test/games/chess/test_chess_validation.rb
  103. +7 −0 test/games/chess/test_pgn.rb
  104. +7 −0 test/games/shogi/test_shogi_notation.rb
  105. +7 −0 test/games/shogi/test_shogi_perform_moves.rb
  106. +7 −0 test/games/shogi/test_shogi_piece.rb
  107. +7 −0 test/games/shogi/test_shogi_serializer.rb
  108. +7 −0 test/games/shogi/test_shogi_state.rb
  109. +7 −0 test/games/shogi/test_shogi_validation.rb
  110. +7 −0 test/ics/test_match_handler.rb
  111. +7 −0 test/ics/test_protocol.rb
  112. +7 −0 test/ics/test_style12.rb
  113. +7 −0 test/interaction/test_match.rb
  114. +7 −0 test/plugins/engines/test_engine_loader.rb
  115. +7 −0 test/test_animation_field.rb
  116. +7 −0 test/test_animations.rb
  117. +7 −0 test/test_animator_helper.rb
  118. +7 −0 test/test_clock.rb
  119. +7 −0 test/test_history.rb
  120. +7 −0 test/test_observer_utils.rb
  121. +7 −0 test/test_point.rb
  122. +7 −0 test/test_point_range.rb
  123. +7 −0 test/test_simple_animation.rb
  124. +7 −0 test/test_utils.rb
View
@@ -0,0 +1,2 @@
+Paolo Capriotti <p.capriotti@gmail.com>
+
View
340 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
26 INSTALL
@@ -0,0 +1,26 @@
+# Requirements
+
+- [KDE 4](http://www.kde.org)
+- [Ruby](http://www.ruby-lang.org/en/)
+- [Korundum](http://rubyforge.org/projects/korundum/)
+- [CMake](http://www.cmake.org)
+
+To compile the extension library (optional, but recommended), you also need:
+
+- A KDE 4 development environment
+- Ruby headers
+
+# Installation
+
+Unpack the Kaya package, change to the package root directory, and type:
+
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR ..
+ make -j2
+ sudo make install
+
+Where KDEDIR is set to the KDE 4 install path.
+
+This will compile the extension library and install Kaya into the specified prefix.
+
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'qtutils'
module AnimationBase
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'animation_field'
require 'factory'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'animations'
module AnimatorHelper
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'board/square_tag.rb'
require 'observer'
require 'board/point_converter.rb'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'item'
module ItemBag
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
class Notify
def initialize(window)
@window = window
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'point'
require 'qtutils'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'item'
class Pool < Qt::GraphicsItemGroup
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'animator_helper'
class PoolAnimator
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'observer_utils'
class Scene < Qt::GraphicsScene
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
module TaggableSquares
TAGS_ZVALUE = -2
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
class Table < Qt::GraphicsView
include Observable
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'observer_utils'
require 'qtutils'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'qtutils'
class Console < Qt::Widget
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
class ConstrainedTextItem < Qt::GraphicsItem
attr_reader :text
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'observer_utils'
require 'history'
require 'board/pool_animator'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'qtutils'
require 'plugins/loader'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'mkmf'
$CPPFLAGS += " -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/"
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
begin
require 'ext/extensions'
rescue LoadError => e
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
class Factory
attr_reader :component
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
module FileWriter
def write_file(url, text)
return nil if url.is_empty
View
@@ -1,2 +1,9 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'games/games'
Game.load_all
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'animator_helper'
module Chess
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'point'
require 'enumerator'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'games/validable'
require 'point'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'strscan'
require 'history'
require 'qtutils'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
module Chess
class Piece
attr_reader :color, :type
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
module Chess
class Policy
attr_accessor :promotion
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'strscan'
module Chess
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'games/chess/san'
require 'point'
View
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'games/chess/piece'
require 'point'
require 'games/state_base'
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'games/validator_base'
module Chess
@@ -1,3 +1,10 @@
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
require 'qtutils'
Action = Struct.new(:id, :opts, :action)
Oops, something went wrong.

0 comments on commit 97e2df0

Please sign in to comment.