国家机器实施 [英] State Machine Implementations

查看:171
本文介绍了国家机器实施的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立一个棋盘游戏,而且看起来就像使用状态机一样。

I am trying to build a board game ... And looks like it has to be implemented using a state machine..

我知道了状态模式,但我确定必须有其他方式来实现状态机。请让我知道..如果你知道任何文章或书籍,其中包含有关不同实现的详细信息(各自的权衡),请指示我..谢谢

I know of the State pattern from GoF, but I am sure there must be other ways to implement state machine. Please let me know.. if you know of any articles or books that contains details about different implementation (trade off of each of them), please direct me.. thanks

推荐答案

查看 Ragel

这篇关于国家机器实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆