This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def build_virtual_boards_hash(board, player) | |
virtual_boards_hash = {} | |
new_board_hash = {} | |
virtual_board = board.dup | |
empty_spaces_on_board = virtual_board.grid.select{ |k, v| v == " " }.keys | |
index_mark = 'VB'+empty_spaces_on_board.length.to_s | |
while empty_spaces_on_board.length >= 1 | |
empty_spaces_on_board.each do |empty_space_symbol| | |
NewerOlder