OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee9fe66
)
Fix mk_gamke_results so that it skip incomplete record filesZ
author
Daigo Moriwaki
<daigo@debian.org>
Sat, 2 Sep 2017 12:45:32 +0000
(21:45 +0900)
committer
Daigo Moriwaki
<daigo@debian.org>
Sat, 2 Sep 2017 12:45:32 +0000
(21:45 +0900)
mk_game_results
patch
|
blob
|
history
diff --git
a/mk_game_results
b/mk_game_results
index
f08ca98
..
f1b89c3
100755
(executable)
--- a/
mk_game_results
+++ b/
mk_game_results
@@
-65,14
+65,14
@@
def grep(file)
str = File.open(file, "r").read
end
- black_name =
""
- black_mark =
""
- black_id =
""
- white_name =
""
- white_mark =
""
- white_id =
""
- state =
""
- time =
""
+ black_name =
nil
+ black_mark =
nil
+ black_id =
nil
+ white_name =
nil
+ white_mark =
nil
+ white_id =
nil
+ state =
nil
+ time =
nil
moves = 0
str.each_line do |line|
line.strip!