1. CODIGO DEL PROGRAMA
frame plantas ;
default proporciona_alimento is si
and default se_reproduce is si
and default nombre is vacio .
frame briofita is a planta ;
default estructura is talo
and default tamaño is medio .
frame cormofitas is a planta ;
default estructura is compleja
and default vasos_conductores is si .
frame musgos is a briofita ;
default tejido_vascular is si
and default especies is quince_mil .
frame hepaticas is a briofita ;
default tejido_vascular is no
and default especies is seis_mil_a_diez_mil .
frame teridofitos is a cormofitas ;
default semillas is no
and default cultivo is ornamentales .
frame espermatofitos is a cormofitas ;
default semillas is si
and default estructura is compleja .
frame helechos is a teridofitos ;
default reproduccion is esporas
and default estructura is raiz_tallo_y_hoja .
frame equisetos is a teridofitos ;
default reproduccion is semillas
and default especies is veinte_mil .
frame gimnospermas is a espermatofitos ;
default flores is poco_vistosas
and default especies is ochocientos_cincuenta .
frame angiospermas is a espermatofitos ;
default flores is muy_vistosas
and default especies is docientos_veinticuatro_mil .
2. frame leptosporangiados is a helechos ;
default tamaño_esporangios is pequeños
and default pedunculo is macizo .
frame eusporangidos is a helechos ;
default tamaño_esporangios is grandes
and default pedunculo is delgado .
frame equisetum is a equisetos ;
default altura is dos_metros .
frame calamites is a equisetos ;
default altura is treinta_metros .
frame coniferas is a gimnospermas ;
default forma_hojas is agujas_o_escamas
and default especies is quinientos_setenta_y_cinco .
frame cicadas is a gimnospermas ;
default forma_hojas is pinadas_o_bipinadas
and default especies is trecientos_sesenta .
frame monocotiledoneas is a angiospermas ;
default num_cotiledon is uno
and default especies is cincuenta_mil .
frame dicotiledoneas is a angiospermas ;
default num_cotiledon is dos
and default especies is ciento_setenta_mil .
frame ofioglosaceas is a eusporangiados ;
default hojas is pinadas
and default tamaño is pequeño .
frame marattiales is a eusporangiados ;
default hojas is escamosas
and default habitat is tropicales_humedos .
frame magnoliidae is a monocotiledoneas ;
default forma_flores is aciclicas
and default forma_maduración is centripeta .
frame rosidae is a monocotiledoneas ;
default forma_flores is disco_o_conica
and default producen is taninos .
frame lilidae is a dicotiledoneas ;
default fruto is capsular .
frame aceriidae is a dicotiledoneas ;
3. default fruto is indehiscente .
question pregunta1
¿Cual es el tipo de estructura? ;
choose from talo , compleja .
question pregunta2
¿Tiene tejido vascular? ;
choose from si , no .
question pregunta3
¿Tiene semillas? ;
choose from no , si .
question pregunta4
¿Se reproduce por medio de? ;
choose from esporas , semillas .
question pregunta5
¿Como son sus flores? ;
choose from poco_vistosas , muy_vistosas .
question pregunta6
¿Como es el tamaño de sus esporagios? ;
choose from pequeños , grandes .
question pregunta7
¿Cual es su altura? ;
choose from dos_metros , treinta_metros .
question pregunta8
¿Como es la forma de sus hojas? ;
choose from agujas_o_escamas , pinadas_o_bipinadas .
question pregunta9
¿Cuantos cotiledones tiene? ;
choose from uno , dos .
question pregunta10
¿Cual es la forma de sus hojas? ;
choose from pinadas , escamosas .
question pregunta11
¿Cual es la forma de sus flores? ;
choose from aciclicas , disco_o_conica .
question pregunta12
¿Como es su fruto? ;
choose from capsular , indehiscente .
rule regla1
4. if the pregunta1 is talo
and the pregunta2 is si
then the planta`s nombre becomes 'Musgos' .
rule regla2
if the pregunta1 is talo
and the pregunta2 is no
then the planta`s nombre becomes 'Hepaticas' .
rule regla3
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is esporas
and the pregunta6 is pequeños
then the planta`s nombre becomes 'Leptosporangiados' .
rule regla4
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is esporas
and the pregunta6 is grandes
and the pregunta10 is pinadas
then the planta`s nombre becomes 'Ofioglósáceas' .
rule regla5
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is esporas
and the pregunta6 is grandes
and the pregunta10 is escamosas
then the planta`s nombre becomes 'Marratiales' .
rule regla6
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is semillas
and the pregunta7 is dos_metros
then the planta`s nombre becomes 'Equisetum' .
rule regla7
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is semillas
and the pregunta7 is treinta_metros
then the planta`s nombre becomes 'Calamites' .
rule regla8
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is poco_vistosas
and the pregunta8 is agujas_o_escamas
then the planta`s nombre becomes 'Coniferas' .
rule regla9
5. if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is poco_vistosas
and the pregunta8 is pinadas_o_bipinadas
then the planta`s nombre becomes 'Cicadas' .
rule regla10
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is muy_vistosas
and the pregunta9 is uno
and the pregunta11 is aciclicas
then the planta`s nombre becomes 'Magnolidae' .
rule regla11
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is muy_vistosas
and the pregunta9 is uno
and the pregunta11 is disco_o_conica
then the planta`s nombre becomes 'Rosidae' .
rule regla12
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is muy_vistosas
and the pregunta9 is dos
and the pregunta12 is capsular
then the planta`s nombre becomes 'Lilidae' .
rule regla13
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is muy_vistosas
and the pregunta9 is dos
and the pregunta12 is indehiscente
then the planta`s nombre becomes 'Aceriidae' .
group general
regla1, regla2, regla3, regla4, regla5, regla6, regla7, regla8, regla9, regla10, regla11,
regla12, regla13 .
ruleset motor
contains general ;
update ruleset by removing each selected rule .
action arranque ;
do restart
and invoke ruleset motor
and echo ('La planta que buscaba es', planta`s nombre)
and nl .