ttt 4 display board rb cb gh 000 源码
显示井字棋盘 概述 井字棋盘可以由9个字符串元素组成的数组来表示,其中包含棋盘中该单元格的状态。 空板将是: board = [ " " , " " , " " , " " , " " , " " , " " , " " , " " ] 如果我们调用display_board并将该board作为参数传递,则期望以下结果: board = [ " " , " " , " " , " " , " " , " " , " " , " " , " " ] display_board ( board ) # Would Print: # | | # ----------- # | | # ----------- # | | 中间带有“ X”的板: board = [ " " , " " , " " , " " , "X" , " " , "
文件列表
ttt-4-display-board-rb-cb-gh-000-master.zip
(预估有个11文件)
ttt-4-display-board-rb-cb-gh-000-master
.learn
140B
lib
display_board.rb
80B
Gemfile
115B
spec
spec_helper.rb
216B
display_board_spec.rb
6KB
Rakefile
338B
CONTRIBUTING.md
2KB
暂无评论