conway.drl

来自「jboss规则引擎」· DRL 代码 · 共 30 行

DRL
30
字号
package org.drools.examples

expander conway.dsl
 
import org.drools.examples.conway.Cell;
import org.drools.examples.conway.CellState;


rule "Kill The Lonely"
when	A live cell has fewer than 2 live neighbors
then
	Kill the cell
end

rule "Kill The Overcrowded"
when
	A live cell has more than 3 live neighbors
then
	Kill the cell
end

rule "Give Birth"
when
	A dead cell has 3 live neighborsthen
	Bring the cell to lifeend
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?