浏览现有的开源项目以学习/改进类设计和设计模式
我正在考虑研究一些开源项目来寻找类设计、设计模式,甚至可能是一些人工智能/算法的例子。
有些人建议不要查看开源项目来学习,但我觉得看到我学到的模式和我考虑在已发布项目中实际工作的实现对我来说确实有用。
我认为相当简单的游戏更注重算法和“计算机思维”会非常有帮助,因为我目前不太关心视觉元素。
我想也许纸牌游戏会非常有用(扑克、红桃、桥牌等),也许还有棋盘游戏。
有没有人对简单的开源游戏或程序有任何建议,可以帮助说明良好的类设计和设计模式和/或人工智能实现?
谢谢!
I was thinking of looking into some open source projects to find examples of class design, design patterns, and maybe even some AI / algorithm stuff.
I have had some people recommend against looking at open source projects to learn, but I feel it really works for me to see patterns I've learned and implementations I've considered actually working in published projects.
I was thinking fairly simple games with more focus on algorithms and "computer thinking" would be quite helpful since I am less concerned with visual elements currently.
I thought perhaps card games would be pretty useful (poker, hearts, bridge, etc etc) and perhaps board games.
Does anyone have any recommendations for simple open-source games or programs that might help illustrate good class design and design patterns and/or AI implementation?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我首先通过Design Patterns in Java这本书学习了设计模式。
我知道这并不完全是您正在寻找的内容,但我认为作为示例提供的代码非常智能且“读者友好”。
I first learned design-patterns using the book Design Patterns in Java.
I understand it's not exactly what you're looking for, but I though the codes provided as example were pretty smart and "reader-friendly".