SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
frame 'jugador' ;
default 'contextura' is 'robusta'
and default 'resistencia' is 'alta'
and default 'quien es' is 'No se sabe' .

/*bloque jugador de futbol*/
frame 'Jugador de f?tbol' is a 'jugador' ;
default 'corre' is 'r?pido'
and default 'N. Jugadores' is 11 .

/*bloque jugador de beisbol*/
frame 'Jugador de beisbol' is a 'jugador' ;
default 'corre' is 'r?pido'
and default 'N. Jugadores' is 9 .

/*bloque jugador de f?tbol profesional*/
frame 'J. f?tbol profesional' is a 'Jugador de f?tbol' ;
default 'sueldo' is 'si'
and default 'calidad' is 'alta' .

/*bloque jugador de f?tbol aficionado*/
frame 'J. f?tbol aficionado' is a 'Jugador de f?tbol' ;
default 'sueldo' is 'no'
and default 'calidad' is 'baja' .

/*bloque jugador de f?tbol profesional primera A*/
frame 'J. f?tbol profesional primera A' is a 'J. f?tbol profesional' ;
default 'pago' is 100
and default 'competitividad' is 'alta' .

/*bloque jugador de f?tbol profesional primera B*/
frame 'J. f?tbol profesional primera B' is a 'J. f?tbol profesional' ;
default 'pago' is 50
and default 'competitividad' is 'media' .

/*bloque jugador petro*/
frame 'Petro' is a 'J. f?tbol profesional primera B' ;
default 'posici?n' is 'medio campo'
and default 'n?mero' is 10 .

/*bloque jugador Rhenals*/
frame 'Rhenals' is a 'J. f?tbol profesional primera B' ;
default 'posici?n' is 'delantero'
and default 'n?mero' is 9 .
/*bloque jugador beisbol grandes ligas*/
frame 'J. beisbol grandes ligas' is a 'Jugador de beisbol' ;
default 'exigencia' is 'm?xima'
and default 'patrocinio' is 'muchos' .

/*bloque jugador beisbol regional*/
frame 'J. beisbol regional' is a 'Jugador de beisbol' ;
default 'exigencia' is 'media'
and default 'patrocinio' is 'pocos' .

/*bloque jugador jorge*/
frame 'Jorge' is a 'J. beisbol grandes ligas' ;
default 'posici?n' is 'pitcher'
and default 'n?mero' is 30 .

/*bloque jugador Luis*/
frame 'Luis' is a 'J. beisbol grandes ligas' ;
default 'posici?n' is 'primera base'
and default 'n?mero' is 40 .


/*bloque de preguntas*/

question p1
'El n?mero de jugadores es :' ;
choose from 11,9 .

question p2
'Tiene sueldo:' ;
choose from 'si','no' .

question p3
'Su pago es :' ;
choose from 100,50 .

question p4
'la posici?n en la que juega es :' ;
choose from 'medio campo','delantero' .

question p5
'Los patrocinadores son :' ;
choose from 'muchos','pocos' .

question p6
'su n?mero es :' ;
choose from 30,40 .

/*bloque de reglas*/

rule r1
if the p1 is 11
and the p2 is 'si'
and the p3 is 100
then the jugador`s 'quien es' becomes 'Jugador de f?tbol profesional primera A' .

rule r2
if the p1 is 11
and the p2 is 'si'
and the p3 is 50
and the p4 is 'medio campo'
then the jugador`s 'quien es' becomes 'Petro' .

rule r3
if the p1 is 11
and the p2 is 'si'
and the p3 is 50
and the p4 is 'delantero'
then the jugador`s 'quien es' becomes 'Rhenals' .

rule r4
if the p1 is 11
and the p2 is 'no'
then the jugador`s 'quien es' becomes 'Jugador aficionado' .

rule r5
if the p1 is 9
and the p5 is 'muchos'
and the p6 is 30
then the jugador`s 'quien es' becomes 'Jorge' .

rule r6
if the p1 is 9
and the p5 is 'muchos'
and the p6 is 40
then the jugador`s 'quien es' becomes 'Luis' .

rule r7
if the p1 is 9
and the p5 is 'pocos'
then the jugador`s 'quien es' becomes 'Jugador de Beisbol Regional' .
group g1
r1,r2,r3,r4,r5,r6,r7 .

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

action ejecutar
do restart
and invoke ruleset ru1
and echo ('El jugador que busca es :', jugador`s 'quien es')
and nl .

Más contenido relacionado

Último

EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptxEXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptxPryhaSalam
 
Estrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónEstrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónLourdes Feria
 
el CTE 6 DOCENTES 2 2023-2024abcdefghijoklmnñopqrstuvwxyz
el CTE 6 DOCENTES 2 2023-2024abcdefghijoklmnñopqrstuvwxyzel CTE 6 DOCENTES 2 2023-2024abcdefghijoklmnñopqrstuvwxyz
el CTE 6 DOCENTES 2 2023-2024abcdefghijoklmnñopqrstuvwxyzprofefilete
 
la unidad de s sesion edussssssssssssssscacio fisca
la unidad de s sesion edussssssssssssssscacio fiscala unidad de s sesion edussssssssssssssscacio fisca
la unidad de s sesion edussssssssssssssscacio fiscaeliseo91
 
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...Carlos Muñoz
 
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptx
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptxSEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptx
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptxYadi Campos
 
La empresa sostenible: Principales Características, Barreras para su Avance y...
La empresa sostenible: Principales Características, Barreras para su Avance y...La empresa sostenible: Principales Características, Barreras para su Avance y...
La empresa sostenible: Principales Características, Barreras para su Avance y...JonathanCovena1
 
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIARAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIACarlos Campaña Montenegro
 
Identificación de componentes Hardware del PC
Identificación de componentes Hardware del PCIdentificación de componentes Hardware del PC
Identificación de componentes Hardware del PCCesarFernandez937857
 
CALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADCALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADauxsoporte
 
Registro Auxiliar - Primaria 2024 (1).pptx
Registro Auxiliar - Primaria  2024 (1).pptxRegistro Auxiliar - Primaria  2024 (1).pptx
Registro Auxiliar - Primaria 2024 (1).pptxFelicitasAsuncionDia
 
La triple Naturaleza del Hombre estudio.
La triple Naturaleza del Hombre estudio.La triple Naturaleza del Hombre estudio.
La triple Naturaleza del Hombre estudio.amayarogel
 
MAYO 1 PROYECTO día de la madre el amor más grande
MAYO 1 PROYECTO día de la madre el amor más grandeMAYO 1 PROYECTO día de la madre el amor más grande
MAYO 1 PROYECTO día de la madre el amor más grandeMarjorie Burga
 
TECNOLOGÍA FARMACEUTICA OPERACIONES UNITARIAS.pptx
TECNOLOGÍA FARMACEUTICA OPERACIONES UNITARIAS.pptxTECNOLOGÍA FARMACEUTICA OPERACIONES UNITARIAS.pptx
TECNOLOGÍA FARMACEUTICA OPERACIONES UNITARIAS.pptxKarlaMassielMartinez
 
Planificacion Anual 2do Grado Educacion Primaria 2024 Ccesa007.pdf
Planificacion Anual 2do Grado Educacion Primaria   2024   Ccesa007.pdfPlanificacion Anual 2do Grado Educacion Primaria   2024   Ccesa007.pdf
Planificacion Anual 2do Grado Educacion Primaria 2024 Ccesa007.pdfDemetrio Ccesa Rayme
 
proyecto de mayo inicial 5 añitos aprender es bueno para tu niño
proyecto de mayo inicial 5 añitos aprender es bueno para tu niñoproyecto de mayo inicial 5 añitos aprender es bueno para tu niño
proyecto de mayo inicial 5 añitos aprender es bueno para tu niñotapirjackluis
 

Último (20)

EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptxEXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
 
Estrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónEstrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcción
 
el CTE 6 DOCENTES 2 2023-2024abcdefghijoklmnñopqrstuvwxyz
el CTE 6 DOCENTES 2 2023-2024abcdefghijoklmnñopqrstuvwxyzel CTE 6 DOCENTES 2 2023-2024abcdefghijoklmnñopqrstuvwxyz
el CTE 6 DOCENTES 2 2023-2024abcdefghijoklmnñopqrstuvwxyz
 
la unidad de s sesion edussssssssssssssscacio fisca
la unidad de s sesion edussssssssssssssscacio fiscala unidad de s sesion edussssssssssssssscacio fisca
la unidad de s sesion edussssssssssssssscacio fisca
 
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
 
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptx
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptxSEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptx
SEXTO SEGUNDO PERIODO EMPRENDIMIENTO.pptx
 
Sesión de clase: Fe contra todo pronóstico
Sesión de clase: Fe contra todo pronósticoSesión de clase: Fe contra todo pronóstico
Sesión de clase: Fe contra todo pronóstico
 
La empresa sostenible: Principales Características, Barreras para su Avance y...
La empresa sostenible: Principales Características, Barreras para su Avance y...La empresa sostenible: Principales Características, Barreras para su Avance y...
La empresa sostenible: Principales Características, Barreras para su Avance y...
 
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIARAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
 
Sesión de clase: Defendamos la verdad.pdf
Sesión de clase: Defendamos la verdad.pdfSesión de clase: Defendamos la verdad.pdf
Sesión de clase: Defendamos la verdad.pdf
 
Identificación de componentes Hardware del PC
Identificación de componentes Hardware del PCIdentificación de componentes Hardware del PC
Identificación de componentes Hardware del PC
 
CALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADCALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDAD
 
Registro Auxiliar - Primaria 2024 (1).pptx
Registro Auxiliar - Primaria  2024 (1).pptxRegistro Auxiliar - Primaria  2024 (1).pptx
Registro Auxiliar - Primaria 2024 (1).pptx
 
La triple Naturaleza del Hombre estudio.
La triple Naturaleza del Hombre estudio.La triple Naturaleza del Hombre estudio.
La triple Naturaleza del Hombre estudio.
 
MAYO 1 PROYECTO día de la madre el amor más grande
MAYO 1 PROYECTO día de la madre el amor más grandeMAYO 1 PROYECTO día de la madre el amor más grande
MAYO 1 PROYECTO día de la madre el amor más grande
 
Presentacion Metodología de Enseñanza Multigrado
Presentacion Metodología de Enseñanza MultigradoPresentacion Metodología de Enseñanza Multigrado
Presentacion Metodología de Enseñanza Multigrado
 
TECNOLOGÍA FARMACEUTICA OPERACIONES UNITARIAS.pptx
TECNOLOGÍA FARMACEUTICA OPERACIONES UNITARIAS.pptxTECNOLOGÍA FARMACEUTICA OPERACIONES UNITARIAS.pptx
TECNOLOGÍA FARMACEUTICA OPERACIONES UNITARIAS.pptx
 
Planificacion Anual 2do Grado Educacion Primaria 2024 Ccesa007.pdf
Planificacion Anual 2do Grado Educacion Primaria   2024   Ccesa007.pdfPlanificacion Anual 2do Grado Educacion Primaria   2024   Ccesa007.pdf
Planificacion Anual 2do Grado Educacion Primaria 2024 Ccesa007.pdf
 
Power Point: Fe contra todo pronóstico.pptx
Power Point: Fe contra todo pronóstico.pptxPower Point: Fe contra todo pronóstico.pptx
Power Point: Fe contra todo pronóstico.pptx
 
proyecto de mayo inicial 5 añitos aprender es bueno para tu niño
proyecto de mayo inicial 5 añitos aprender es bueno para tu niñoproyecto de mayo inicial 5 añitos aprender es bueno para tu niño
proyecto de mayo inicial 5 añitos aprender es bueno para tu niño
 

Destacado

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 HubspotMarius 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 ChatGPTExpeed 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 EngineeringsPixeldarts
 
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 HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil 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 2024Albert 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 InsightsKurio // 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 2024Search 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 summarySpeakerHub
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit 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 managementMindGenius
 
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
 

Destacado (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...
 

Código (Redes Jugadores)

  • 1. frame 'jugador' ; default 'contextura' is 'robusta' and default 'resistencia' is 'alta' and default 'quien es' is 'No se sabe' . /*bloque jugador de futbol*/ frame 'Jugador de f?tbol' is a 'jugador' ; default 'corre' is 'r?pido' and default 'N. Jugadores' is 11 . /*bloque jugador de beisbol*/ frame 'Jugador de beisbol' is a 'jugador' ; default 'corre' is 'r?pido' and default 'N. Jugadores' is 9 . /*bloque jugador de f?tbol profesional*/ frame 'J. f?tbol profesional' is a 'Jugador de f?tbol' ; default 'sueldo' is 'si' and default 'calidad' is 'alta' . /*bloque jugador de f?tbol aficionado*/ frame 'J. f?tbol aficionado' is a 'Jugador de f?tbol' ; default 'sueldo' is 'no' and default 'calidad' is 'baja' . /*bloque jugador de f?tbol profesional primera A*/ frame 'J. f?tbol profesional primera A' is a 'J. f?tbol profesional' ; default 'pago' is 100 and default 'competitividad' is 'alta' . /*bloque jugador de f?tbol profesional primera B*/ frame 'J. f?tbol profesional primera B' is a 'J. f?tbol profesional' ; default 'pago' is 50 and default 'competitividad' is 'media' . /*bloque jugador petro*/ frame 'Petro' is a 'J. f?tbol profesional primera B' ; default 'posici?n' is 'medio campo' and default 'n?mero' is 10 . /*bloque jugador Rhenals*/ frame 'Rhenals' is a 'J. f?tbol profesional primera B' ; default 'posici?n' is 'delantero' and default 'n?mero' is 9 .
  • 2. /*bloque jugador beisbol grandes ligas*/ frame 'J. beisbol grandes ligas' is a 'Jugador de beisbol' ; default 'exigencia' is 'm?xima' and default 'patrocinio' is 'muchos' . /*bloque jugador beisbol regional*/ frame 'J. beisbol regional' is a 'Jugador de beisbol' ; default 'exigencia' is 'media' and default 'patrocinio' is 'pocos' . /*bloque jugador jorge*/ frame 'Jorge' is a 'J. beisbol grandes ligas' ; default 'posici?n' is 'pitcher' and default 'n?mero' is 30 . /*bloque jugador Luis*/ frame 'Luis' is a 'J. beisbol grandes ligas' ; default 'posici?n' is 'primera base' and default 'n?mero' is 40 . /*bloque de preguntas*/ question p1 'El n?mero de jugadores es :' ; choose from 11,9 . question p2 'Tiene sueldo:' ; choose from 'si','no' . question p3 'Su pago es :' ; choose from 100,50 . question p4 'la posici?n en la que juega es :' ; choose from 'medio campo','delantero' . question p5 'Los patrocinadores son :' ; choose from 'muchos','pocos' . question p6 'su n?mero es :' ;
  • 3. choose from 30,40 . /*bloque de reglas*/ rule r1 if the p1 is 11 and the p2 is 'si' and the p3 is 100 then the jugador`s 'quien es' becomes 'Jugador de f?tbol profesional primera A' . rule r2 if the p1 is 11 and the p2 is 'si' and the p3 is 50 and the p4 is 'medio campo' then the jugador`s 'quien es' becomes 'Petro' . rule r3 if the p1 is 11 and the p2 is 'si' and the p3 is 50 and the p4 is 'delantero' then the jugador`s 'quien es' becomes 'Rhenals' . rule r4 if the p1 is 11 and the p2 is 'no' then the jugador`s 'quien es' becomes 'Jugador aficionado' . rule r5 if the p1 is 9 and the p5 is 'muchos' and the p6 is 30 then the jugador`s 'quien es' becomes 'Jorge' . rule r6 if the p1 is 9 and the p5 is 'muchos' and the p6 is 40 then the jugador`s 'quien es' becomes 'Luis' . rule r7 if the p1 is 9 and the p5 is 'pocos' then the jugador`s 'quien es' becomes 'Jugador de Beisbol Regional' .
  • 4. group g1 r1,r2,r3,r4,r5,r6,r7 . ruleset ru1 contains g1 ; update ruleset by removing each selected rule . action ejecutar do restart and invoke ruleset ru1 and echo ('El jugador que busca es :', jugador`s 'quien es') and nl .