def modify(board, opts=None):
opts = get_opts(opts)<EOL>if opts['<STR_LIT>'] is not None:<EOL><INDENT>board.tiles = _read_tiles_from_string(opts['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>board.tiles = _generate_tiles(opts['<STR_LIT>'], opts['<STR_LIT>'])<EOL><DEDENT>board.ports = _get_ports(opts['<STR_LIT>'])<EOL>board.state = catan.states.BoardStateModifiable(board)<EOL>board.pieces = _get_pieces(board.tiles, board.ports, opts['<STR_LIT>'], opts['<STR_LIT>'])<EOL>return None<EOL>
Reset an existing board using the given options.
:param board: the board to reset
:param opts: dictionary mapping str->Opt
:return: None