Sha256: 5f63499f3e12d96603dfb8db11f9fe6c1786d96613100c4c6e7356a0ae5dd6f5
Contents?: true
Size: 289 Bytes
Versions: 2
Compression:
Stored size: 289 Bytes
Contents
module TTT class GameResetter attr_accessor :game def reset_game(game) @game = game reset_board game.number_of_turns_taken = 0 game.won_flag = false end def reset_board game.board = game.generate_empty_board(game.config) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
games_bfox-0.3.0 | lib/games/tictactoe/game_resetter.rb |
games_bfox-0.2.0 | lib/games/tictactoe/game_resetter.rb |