All pastes #623765 Raw Edit

ice_cream

public ruby v1 · immutable
·published 2007-07-17 20:37 UTC
rendered paste body
138  if( @deck[0] != ('A' or 'B'))139     if (@deck[@deck[0]] != ('A' or 'B') )140	  print toletter(@deck[@deck[0]])  141	end142  end#relevant lines above; error message is 139:in `[]': can't convert String into Integer (TypeError)## a deck contains numbers 1-52, and also two characters 'A' and 'B'