SlideShare a Scribd company logo
frame animales ;
default respira is si
and default sangre is si
and default quien_es is 'desconocido' .

frame animales_salvajes is a animales ;
default agresividad is alta
and default viven is en_su_habitat_natural .

frame animales_domesticos is a animales;
default agresividad is moderada
and default viven is con-el_hombre .

frame animales_selvaticos is a animales_salvajes;
default habitad is selva
and default deshidratacion is poca .


frame animales_deserticos is a animales_selvaticos;
default habitad is desierto
and default deshidratacion is constante .

frame animales_para_el_consumo is a animales_domesticos;
default carne_comestible is si
and default gordura is alta .


frame animales_de_compa?ia is a animales_domesticos;
default carne_comestible is no
and default gordura is media .

frame animal_de_orden_carnivoro is a animales_selvaticos;
default alimentacion is carne
and default mandibulas is poderosas .


frame animal_de_orden_insectivoro is a animales_selvaticos;
default alimentacion is insectas
and default mandibulas is poco_poderosas .



frame animales_de_sangre_caliente is a animales_desierticoss;
default recubrimiento is pelos
and default calor is generado_por_procesos_internos .
frame animales_de_sangre_fria is a animales_desierticoss;
default recubrimiento is escamas
and default calor is fuentes_externas .


frame animal_con_cuernos is a animales_para_el_consumo;
default cuernos is si
and default leche_consumible is si .


frame animal_sin_cuernos is a animales_para_el_consumo;
default cuernos is no
and default leche_consumible is no .



frame animal_sin_carnivoro is a animales_de_compa?ia;
default alimentacion is carne
and default consumidores is secundarios .


frame animal_herviboro is a animales_de_compa?ia;
default alimentacion is hierba
and default consumidores is primarios .

frame tigre is a animal_de_orden_carnivoro;
default familia is felina
and default piel_rayada is si .


frame zorro is a animal_de_orden_carnivoro;
default familia is caninos
and default piel_rayada is no .


frame camaleon is a animal_de_orden_insectivoro;
default cola is si
and default cambia_de_color is si .


frame rana is a animal_de_orden_insectivoro;
default cola is si
and default cambia_de_color is no .


frame ara?a is a animal_de_sangre_caliente ;
default veneno is si
and default num_patas is num8 .



frame coyote is a animal_de_sangre_caliente ;
default veneno is no
and default num_patas is num4 .


frame lagarto_de_cola_espinosa is a animal_de_sangre_fria ;
default patas is si
and default puas is si .


frame cobra is a animal_de_sangre_fria ;
default patas is no
and default puas is no .

frame cabra_domestica is a animal_con_cuernos ;
default recubrimiento is lana
and default cola is corta .


frame vaca is a animal_con_cuernos ;
default recubrimiento is pelo
and default cola is larga .


frame gallina is a animal_sin_cuernos ;
default alas is si
and default pesu?as is no .


frame cerdo is a animal_sin_cuernos ;
default alas is no
and default pesu?as is si .


frame gato is a animal_carnivoro ;
default familia is felinos
and default unas_retractiles is si .


frame perro is a animal_carnivoro ;
default familia is caninos
and default unas_retractiles is no .

frame burro is a animal_herbivoro ;
default utilizacion_frecuente is carga
and default orejas is largas .

frame caballo is a animal_herbivoro ;
default utilizacion_frecuente is carreras
and default orejas is cortas .


question sangre

'?tiene sangre?' ;
choose one of si, no .


question vive

'?viven en?' ;
choose one of en_su_habitad_natural, con_el_hombre .



question deshidratacion
'?Tipo de Deshidrataci?n?' ;
choose one of poca, constante .



question gordura
'?Tipo de Gordura?' ;
choose one of alta, media .



question mandibula
'?Tipo de Mandibulas?' ;
choose one of poderosas, poco_poderosas .
question calor
'?Tipo de Calor?' ;
choose one of generado_por_procesos_internos, fuentes_externas .


question leche_consumible
'?Tipo de leche?' ;
choose one of si, no .


question consumidores
'?Tipo de Consumidores?' ;
choose one of secundarios, primarios .


question piel_rayada
'?Tiene la piel rayada?' ;
choose one of si, no .


question cambio_de_color
'?Tipo de cambio de color?' ;
choose one of si, no .


question numero_de_patas
'?numero de patas que posee?' ;
choose one of num8, num4 .


question puas
'?Posee puas?' ;
choose one of si, no .

question cola
'?Posee cola?' ;
choose one of corta, larga .

question pesu?as
'?Posee pesu?as?' ;
choose one of no, si .

question orejas
'?Tipo de orejas?' ;
choose one of largas, cortas .

question unas_retractiles
'?Tipo u?as retractiles?' ;
choose one of si, no .



rule r1
if the sangre is si
and the vive is en_su_habitad_natural
and the deshidratacion is poca
and the mandibula is poderosas
and the piel_rayada is si
then the animales`s quien_es becomes tigre .

rule r2
if the sangre is si
and the vive is en_su_habitad_natural
and the deshidratacion is poca
and the mandibula is poderosas
and the piel_rayada is no
then the animales`s quien_es becomes zorro .

rule r3
if the sangre is si
and the vive is en_su_habitad_natural
and the deshidratacion is poca
and the mandibula is poco_poderosas
and the cambio_de_color is si
then the animales`s quien_es becomes camaleon .

rule r4
if the sangre is si
and the vive is en_su_habitad_natural
and the deshidratacion is poca
and the mandibula is poco_poderosas
and the cambio_de_color is no
then the animales`s quien_es becomes rana .

rule r5
if the sangre is si
and the vive is en_su_habitad_natural
and the deshidratacion is constante
and the calor is generado_por_procesos_internos
and the numero_de_patas is num8
then the animales`s quien_es becomes ara?a .

rule r6
if the sangre is si
and the vive is en_su_habitad_natural
and the deshidratacion is constante
and the calor is generado_por_procesos_internos
and the numero_de_patas is num4
then the animales`s quien_es becomes coyote .

rule r7
if the sangre is si
and the vive is en_su_habitad_natural
and the deshidratacion is constante
and the calor is fuentes_externas
and the puas is si
then the animales`s quien_es becomes lagarto_de_cola_espinosa .

rule r8
if the sangre is si
and the vive is en_su_habitad_natural
and the deshidratacion is constante
and the calor is fuentes_externas
and the puas is no
then the animales`s quien_es becomes cobra .

rule r9
if the sangre is si
and the vive is con_el_hombre
and the gordura is alta
and the leche_consumible is si
and the cola is corta
then the animales`s quien_es becomes cabra_domestica .

rule r10
if the sangre is si
and the vive is con_el_hombre
and the gordura is alta
and the leche_consumible is si
and the cola is larga
then the animales`s quien_es becomes vaca .

rule r11
if the sangre is si
and the vive is con_el_hombre
and the gordura is alta
and the leche_consumible is no
and the pesu?as is no
then the animales`s quien_es becomes gallina .

rule r12
if the sangre is si
and the vive is con_el_hombre
and the gordura is alta
and the leche_consumible is no
and the pesu?as is si
then the animales`s quien_es becomes cerdo .

rule r13
if the sangre is si
and the vive is con_el_hombre
and the gordura is media
and the consumidores is secundarios
and the unas_retractiles is si
then the animales`s quien_es becomes gato .

rule r14
if the sangre is si
and the vive is con_el_hombre
and the gordura is media
and the consumidores is secundarios
and the unas_retractiles is no
then the animales`s quien_es becomes perro .

rule r15
if the sangre is si
and the vive is con_el_hombre
and the gordura is media
and the consumidores is primarios
and the orejas is largas
then the animales`s quien_es becomes burro .

rule r16
if the sangre is si
and the vive is con_el_hombre
and the gordura is media
and the consumidores is primarios
and the orejas is cortas
then the animales`s quien_es becomes caballo .
group g1
r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16 .

ruleset ru1
contains g1 ;
update ruleset by removing each selected rule .

action terminar ;
do restart
and invoke ruleset ru1
and echo ('El animal que buscas es:', animales`s quien_es)
and nl .

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

codigo_animal

  • 1. frame animales ; default respira is si and default sangre is si and default quien_es is 'desconocido' . frame animales_salvajes is a animales ; default agresividad is alta and default viven is en_su_habitat_natural . frame animales_domesticos is a animales; default agresividad is moderada and default viven is con-el_hombre . frame animales_selvaticos is a animales_salvajes; default habitad is selva and default deshidratacion is poca . frame animales_deserticos is a animales_selvaticos; default habitad is desierto and default deshidratacion is constante . frame animales_para_el_consumo is a animales_domesticos; default carne_comestible is si and default gordura is alta . frame animales_de_compa?ia is a animales_domesticos; default carne_comestible is no and default gordura is media . frame animal_de_orden_carnivoro is a animales_selvaticos; default alimentacion is carne and default mandibulas is poderosas . frame animal_de_orden_insectivoro is a animales_selvaticos; default alimentacion is insectas and default mandibulas is poco_poderosas . frame animales_de_sangre_caliente is a animales_desierticoss; default recubrimiento is pelos and default calor is generado_por_procesos_internos .
  • 2. frame animales_de_sangre_fria is a animales_desierticoss; default recubrimiento is escamas and default calor is fuentes_externas . frame animal_con_cuernos is a animales_para_el_consumo; default cuernos is si and default leche_consumible is si . frame animal_sin_cuernos is a animales_para_el_consumo; default cuernos is no and default leche_consumible is no . frame animal_sin_carnivoro is a animales_de_compa?ia; default alimentacion is carne and default consumidores is secundarios . frame animal_herviboro is a animales_de_compa?ia; default alimentacion is hierba and default consumidores is primarios . frame tigre is a animal_de_orden_carnivoro; default familia is felina and default piel_rayada is si . frame zorro is a animal_de_orden_carnivoro; default familia is caninos and default piel_rayada is no . frame camaleon is a animal_de_orden_insectivoro; default cola is si and default cambia_de_color is si . frame rana is a animal_de_orden_insectivoro; default cola is si
  • 3. and default cambia_de_color is no . frame ara?a is a animal_de_sangre_caliente ; default veneno is si and default num_patas is num8 . frame coyote is a animal_de_sangre_caliente ; default veneno is no and default num_patas is num4 . frame lagarto_de_cola_espinosa is a animal_de_sangre_fria ; default patas is si and default puas is si . frame cobra is a animal_de_sangre_fria ; default patas is no and default puas is no . frame cabra_domestica is a animal_con_cuernos ; default recubrimiento is lana and default cola is corta . frame vaca is a animal_con_cuernos ; default recubrimiento is pelo and default cola is larga . frame gallina is a animal_sin_cuernos ; default alas is si and default pesu?as is no . frame cerdo is a animal_sin_cuernos ; default alas is no and default pesu?as is si . frame gato is a animal_carnivoro ; default familia is felinos
  • 4. and default unas_retractiles is si . frame perro is a animal_carnivoro ; default familia is caninos and default unas_retractiles is no . frame burro is a animal_herbivoro ; default utilizacion_frecuente is carga and default orejas is largas . frame caballo is a animal_herbivoro ; default utilizacion_frecuente is carreras and default orejas is cortas . question sangre '?tiene sangre?' ; choose one of si, no . question vive '?viven en?' ; choose one of en_su_habitad_natural, con_el_hombre . question deshidratacion '?Tipo de Deshidrataci?n?' ; choose one of poca, constante . question gordura '?Tipo de Gordura?' ; choose one of alta, media . question mandibula '?Tipo de Mandibulas?' ; choose one of poderosas, poco_poderosas .
  • 5. question calor '?Tipo de Calor?' ; choose one of generado_por_procesos_internos, fuentes_externas . question leche_consumible '?Tipo de leche?' ; choose one of si, no . question consumidores '?Tipo de Consumidores?' ; choose one of secundarios, primarios . question piel_rayada '?Tiene la piel rayada?' ; choose one of si, no . question cambio_de_color '?Tipo de cambio de color?' ; choose one of si, no . question numero_de_patas '?numero de patas que posee?' ; choose one of num8, num4 . question puas '?Posee puas?' ; choose one of si, no . question cola '?Posee cola?' ; choose one of corta, larga . question pesu?as '?Posee pesu?as?' ; choose one of no, si . question orejas '?Tipo de orejas?' ;
  • 6. choose one of largas, cortas . question unas_retractiles '?Tipo u?as retractiles?' ; choose one of si, no . rule r1 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is poca and the mandibula is poderosas and the piel_rayada is si then the animales`s quien_es becomes tigre . rule r2 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is poca and the mandibula is poderosas and the piel_rayada is no then the animales`s quien_es becomes zorro . rule r3 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is poca and the mandibula is poco_poderosas and the cambio_de_color is si then the animales`s quien_es becomes camaleon . rule r4 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is poca and the mandibula is poco_poderosas and the cambio_de_color is no then the animales`s quien_es becomes rana . rule r5 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is constante and the calor is generado_por_procesos_internos
  • 7. and the numero_de_patas is num8 then the animales`s quien_es becomes ara?a . rule r6 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is constante and the calor is generado_por_procesos_internos and the numero_de_patas is num4 then the animales`s quien_es becomes coyote . rule r7 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is constante and the calor is fuentes_externas and the puas is si then the animales`s quien_es becomes lagarto_de_cola_espinosa . rule r8 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is constante and the calor is fuentes_externas and the puas is no then the animales`s quien_es becomes cobra . rule r9 if the sangre is si and the vive is con_el_hombre and the gordura is alta and the leche_consumible is si and the cola is corta then the animales`s quien_es becomes cabra_domestica . rule r10 if the sangre is si and the vive is con_el_hombre and the gordura is alta and the leche_consumible is si and the cola is larga then the animales`s quien_es becomes vaca . rule r11 if the sangre is si
  • 8. and the vive is con_el_hombre and the gordura is alta and the leche_consumible is no and the pesu?as is no then the animales`s quien_es becomes gallina . rule r12 if the sangre is si and the vive is con_el_hombre and the gordura is alta and the leche_consumible is no and the pesu?as is si then the animales`s quien_es becomes cerdo . rule r13 if the sangre is si and the vive is con_el_hombre and the gordura is media and the consumidores is secundarios and the unas_retractiles is si then the animales`s quien_es becomes gato . rule r14 if the sangre is si and the vive is con_el_hombre and the gordura is media and the consumidores is secundarios and the unas_retractiles is no then the animales`s quien_es becomes perro . rule r15 if the sangre is si and the vive is con_el_hombre and the gordura is media and the consumidores is primarios and the orejas is largas then the animales`s quien_es becomes burro . rule r16 if the sangre is si and the vive is con_el_hombre and the gordura is media and the consumidores is primarios and the orejas is cortas then the animales`s quien_es becomes caballo .
  • 9. group g1 r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16 . ruleset ru1 contains g1 ; update ruleset by removing each selected rule . action terminar ; do restart and invoke ruleset ru1 and echo ('El animal que buscas es:', animales`s quien_es) and nl .