libttc.rb

Path: lib/libttc.rb
Last Update: Thu Mar 27 16:06:40 +0000 2008

Synopsis

Library to support Trap the Cap play

Author

Neil Smith

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 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Change history

Version 1.1:07 Sep 2007
  • Changed format for showing moves via bases.
  • Raise error when moving via base without captured pieces
  • Raise error when moving onto a safe space with 3 or more pieces already there
Version 1.2:10 Sep 2007
Version 1.3:25 Mar 2008
  • Fixed bug to detect a winner, and also eliminate players that have no uncaptured pieces.

[Validate]