conway.dsl
来自「jboss规则引擎」· DSL 代码 · 共 7 行
DSL
7 行
#These are the DSL elements for Conways Game of Life.[then]Kill the cell=theCell.queueNextCellState(CellState.DEAD);[when]A live cell has fewer than {number} live neighbors=theCell: Cell(numberOfLiveNeighbors < {number}, cellState == CellState.LIVE)[when]A live cell has more than {number} live neighbors=theCell: Cell(numberOfLiveNeighbors > {number}, cellState == CellState.LIVE)[when]A dead cell has {number} live neighbors=theCell: Cell(numberOfLiveNeighbors == {number}, cellState == CellState.DEAD)[then]Bring the cell to life=theCell.queueNextCellState(CellState.LIVE);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?