lib/combinatorial_puzzle_solver/possibilities.rb
# Notifies dependent identifiers that they can't have a certain value.
#
# @param value [Object] a value that the dependent identifiers cannot have.
# @param resolvable [Hash<Identifier,Object>] an optional Hash to store all
#                                             identifiers and values that becomes
#                                             resolvable.
# @return [Hash<Identifier,Object>] the hash of identifiers that becomes
#                                   resolvable because of this action.
# @raise [Inconsistency] if the solution space becomes inconsistent without any
#                        possible solution.
Notifies dependent identifiers that they can't have a certain value.
Notifies dependent identifiers that they can ' t have a certain value .
def dependent_identifiers_cannot_be!(value, resolvable=Hash.new)
      @identifier.dependent_identifiers.each{|dependency|
        @solution_space[dependency].cannot_be!(value, resolvable)
      }
      resolvable
    end
def dependent_identifiers_cannot_be! ( value , resolvable = Hash . new ) @identifier . dependent_identifiers . each { | dependency | @solution_space [ dependency ] . cannot_be! ( value , resolvable ) } resolvable end
Notifies dependent identifiers that they can't have a certain value.
Notifies dependent identifiers that they can ' t have a certain value .
the hash of identifiers that becomes resolvable because of this action.
the hash of identifiers that becomes resolvable because of this action .
Hash<Identifier,Object>
[Inconsistency] if the solution space becomes inconsistent without any possible solution.
[ Inconsistency ] if the solution space becomes inconsistent without any possible solution .
value
a value that the dependent identifiers cannot have.
a value that the dependent identifiers cannot have .
resolvable
an optional Hash to store all identifiers and values that becomes resolvable.
an optional Hash to store all identifiers and values that becomes resolvable .
new
<not_specific>