File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ def command str
108
108
end
109
109
return false
110
110
end
111
- # when "print" then
111
+ when "print" then
112
112
when "help" then
113
113
f = open ( "./doc/help.txt" )
114
114
puts f . read
@@ -151,12 +151,6 @@ def piece_name? name
151
151
end
152
152
end
153
153
154
- #if ARGV.length == 0
155
- # ipaddr = "localhost"
156
- #else
157
- # ipaddr = ARGV[0]
158
- #end
159
-
160
154
def cmdline
161
155
args = { ipaddr : "localhost" , port : "1117" }
162
156
OptionParser . new do |parser |
@@ -192,7 +186,7 @@ def cmdline
192
186
193
187
consol += "> "
194
188
195
- WORDS = %w( foo foobar foobaz )
189
+ WORDS = %w( move set print help )
196
190
197
191
Readline . completion_proc = proc { |word |
198
192
WORDS . grep ( /\A #{ Regexp . quote word } / )
Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ def move? before, after
20
20
end
21
21
22
22
def to_s
23
- disp "飛 "
23
+ disp "角 "
24
24
end
25
25
end
You can’t perform that action at this time.
0 commit comments