Method: Upwords::MoveManager#initialize
- Defined in:
- lib/upwords/move_manager.rb
#initialize(board, dictionary) ⇒ MoveManager
4 5 6 7 8 9 |
# File 'lib/upwords/move_manager.rb', line 4 def initialize(board, dictionary) @board = board @dict = dictionary @pending_move = [] @move_history = [] # TODO: Add filled board spaces as first move if board is not empty end |