Giter Site home page Giter Site logo

Comments (4)

kercylan98 avatar kercylan98 commented on May 22, 2024 1

你好,感谢你的关注,在 minotaur 里基本大多数功能都是可以拿出来单独使用的,大多数的内容目前都有中文的注释,相关文档也可以在 https://pkg.go.dev/github.com/kercylan98/minotaur 查询到。

关于你提到的基础例子,我将在近期考虑实现并新增,感谢你的提出。

  • 扑克类游戏,目前在 game/poker 包中提供了大量的用于扑克牌玩法的函数,包括了牌型检查、牌堆、最优牌型组合等功能,也提供了很多内置的常见牌型检查函数。但是很遗憾,目前缺少范例测试,不过我将会开始补充,由于现在更新进度很快,或许很快就能看到。
  • 麻将类游戏,迄今为止其实还没有考虑过麻将类游戏的实现,不过麻将类游戏主要也是各种牌型的组合,或许扑克类的 game/poker 包应该也能解决?不过应该可以将这类牌型、组合的内容抽离到单独的包里做成通用功能。
  • 战斗类,这是目前这个仓库比较缺乏的内容,由于战斗类型多种多样,而且涉及面广泛,我也一直在考虑该怎样实现会比较合适,目前能够涉及到完整的战斗系统的实现暂时没有,不过一些相关的包应该能帮助到你:
    • 基于 2D 的 AOI 实现 game/aoi
    • A* 算法的寻路包 utils/geometry/astar
    • 网格寻路 utils/geometry/navmesh
    • 2D 服务端移动 component/components/moving2d.go

补充:

from minotaur.

kercylan98 avatar kercylan98 commented on May 22, 2024

目前我创建了另一个仓库:https://github.com/kercylan98/minotaur-example ,在这个仓库中当前简单的实现了基于 WebSocket 的基础服务端,使用 Protobuf 作为通讯协议,包含了三个基础协议,心跳、获取服务器事件和登录的简单实现。后续完整用例我也将继续添加在该仓库中。

from minotaur.

kercylan98 avatar kercylan98 commented on May 22, 2024

斗地主相关逻辑 https://github.com/kercylan98/minotaur-example/blob/master/game/services/landlords/landlords.go
我认为麻将与斗地主应该类似,而战斗方面。这个需要较为详细的需求

from minotaur.

kercylan98 avatar kercylan98 commented on May 22, 2024

关于牌型的检测、生成可以参考以下包的测试用例:
https://github.com/kercylan98/minotaur/tree/master/utils/combination

回合制切换的实现可参考:
https://github.com/kercylan98/minotaur-example/blob/master/game/services/landlords/landlords.go

from minotaur.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.