Initial commit
[trapthecap.git] / src / ttc.rb
1 #!/usr/bin/ruby -w
2 #
3 # == Synopsis
4 #
5 # Play one move of a Trap the Cap game
6 #
7 # == Usage
8 # ttc [ -b | --board-size SIZE ] [ -i | --input FILE ] [ -r | --robot ROBOT ] [ -h | --help ]
9 #
10 # == Author
11 # Neil Smith
12
13 require File.join(File.dirname(__FILE__), '..', 'lib', 'libttc')
14 require 'open3'
15 require 'timeout'
16 require 'optparse'
17 require 'rdoc/usage'
18
19
20 class InvalidRobotError < StandardError
21 end
22
23 class NoInputFileError < StandardError
24 end
25
26 class InvalidMoveInHistoryError < StandardError
27 end
28
29 class GameWonInHistoryError < StandardError
30 end
31
32
33
34 board = Board.new(6, 5, 6)
35 puts board
36