Giter VIP home page Giter VIP logo

Comments (3)

ochaochaocha3 avatar ochaochaocha3 commented on June 11, 2024

Rubyのgemの標準的な配置に倣うと、まず lib/ルートモジュール/ 以下にファイルを置くことになりそうです。

そこで、最初にルートモジュールの名前を決めることが課題になります。素直に考えれば BCDice ですが、主要なクラスの BCDice と被って少し分かりにくい(BCDice::BCDice のようになる)かもしれません。言語処理系生成ツールANTLRのgemのように、バージョンも含めた BCDice3 とするのはひとつの案ですが、同様の例はほとんどないようです。

from bcdice.

ochaochaocha3 avatar ochaochaocha3 commented on June 11, 2024

関連:ダイスボットのインターフェース案(酒田 シンジさん考案)
https://gist.github.com/ysakasin/1464a15828f4beeb2988b61f924bacb9

from bcdice.

ysakasin avatar ysakasin commented on June 11, 2024
BCDice
├── i18n
│   ├── common
│   │   ├── jp_ja.yml
│   │   └── ko_kr.yml
│   └── game_system
│       └── cthulhu
│           ├── jp_ja.yml
│           └── ko_kr.yml
├── lib
│   ├── bcdice/
│   │   ├── all_game_systems.rb
│   │   ├── arithmetic_evaluator.rb
│   │   ├── common_command/
│   │   │   ├── add_dice.rb
│   │   │   └── choice.rb
│   │   ├── dice_table/
│   │   │   ├── d66_table.rb
│   │   │   └── table.rb
│   │   ├── extra_table.rb
│   │   ├── format.rb
│   │   ├── game_system/
│   │   │   ├── cthulhu.rb
│   │   │   └── sword_world_20.rb
│   │   ├── game_system_base.rb
│   │   └── version.rb
│   └── bcdice.rb
└── test/
    └── data/
        └── cthulhu.toml
  • lib/bcdice/all_game_systems.rb: 全システムをロードする
    • Ver3ではVer2のDiceBotLoader相当の処理はせずに、システムが読み込まれた時に登録する形式にするつもり
    • こいつに全システムを require するように列挙する

from bcdice.

Related Issues (20)

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.