📄 conway.drl
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -