Sha256: bfd0b3c059593b503e631bc37cc405c7f47e07edd8c199b291effd22579dfae2
Contents?: true
Size: 247 Bytes
Versions: 3
Compression:
Stored size: 247 Bytes
Contents
module SquaresContainer def []( index ) @squares[index] end def blanks() @squares.find_all { |s| s == " " }.size end def os() @squares.find_all { |s| s == "O" }.size end def xs() @squares.find_all { |s| s == "X" }.size end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
tres-raya-0.0.3 | lib/tres_raya/squares_container.rb |
ta-te-ti-0.0.2 | lib/ta_te_ti/squares_container.rb |
tres-raya-0.0.2 | lib/tres_raya/squares_container.rb |