lib/games/mastermind/pegs.rb in games_bfox-0.4.0 vs lib/games/mastermind/pegs.rb in games_bfox-0.6.0

- old
+ new

@@ -8,12 +8,12 @@ @collection_of_pegs = args.fetch(:collection_of_pegs) end def retrieve_peg(row, col) if row >= number_of_rows || col >= number_of_cols - return nil + nil else - return collection_of_pegs[row][col] + collection_of_pegs[row][col] end end def current_row(number_of_turns_taken) collection_of_pegs[number_of_turns_taken]