Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_relative "puts.rb"
- #camelion = Camelion.new;
- #camelion.colorGreen
- puts "��� � ��� ����� ��������! ��������!!!"
- puts '�� ������ ��� ������� ����� �������--- "eat" ��� ������ � ��� � ������� "go" '
- cameleon2 = Cameleon2.new #������ ������
- puts "������� ��������"
- answer = gets.chomp #���� ������
- #��������� ������
- if eat = answer;
- cameleon2.feed
- cameleon2.life
- else go = answer
- cameleon2.walk
- cameleon2.life
- end
Advertisement
Add Comment
Please, Sign In to add comment