浏览现有的开源项目以学习/改进类设计和设计模式

发布于 2024-12-08 00:31:31 字数 280 浏览 1 评论 0原文

我正在考虑研究一些开源项目来寻找类设计、设计模式,甚至可能是一些人工智能/算法的例子。

有些人建议不要查看开源项目来学习,但我觉得看到我学到的模式和我考虑在已发布项目中实际工作的实现对我来说确实有用。

我认为相当简单的游戏更注重算法和“计算机思维”会非常有帮助,因为我目前不太关心视觉元素。

我想也许纸牌游戏会非常有用(扑克、红桃、桥牌等),也许还有棋盘游戏。

有没有人对简单的开源游戏或程序有任何建议,可以帮助说明良好的类设计和设计模式和/或人工智能实现?

谢谢!

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞花火° 2024-12-15 00:31:31

我首先通过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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文