Giter VIP home page Giter VIP logo

Comments (6)

ysakasin avatar ysakasin commented on June 11, 2024 1

@GenKuzumochi ありがとうございます
2choice だと x2 choice 的な捉え方もできなくないと思っているので、 choice2の形式が良いと思っています。
2D6だとD6を2回した時の合計となるので、2choice[A,B,C]choice[A,B,C]が2回の方が近いかなと。
英語的にも choice two items from A, B, C and D なので choice2 の方が自然かと思います。

Rangeは choice a-z, choice[a-z], choice(a-z) の全てをサポート予定です。

from bcdice.

R-F-D avatar R-F-D commented on June 11, 2024

入力時、項目の羅列に

choice[1-5]
choice[A-E]

のような連番表記ができると便利そうです

from bcdice.

ochaochaocha3 avatar ochaochaocha3 commented on June 11, 2024
choice[The Call of Cthulhu, The Shadow Over Innsmouth, The Shadow Out of Time]
#=> "(省略) > The Shadow Out of Time"

現在は選択肢まで含めて大文字に変換される仕様なので、choice を特別扱いして大文字小文字を保持する仕組みも必要になりそうです。choice の判定を大文字変換の前に行うか、従来のように大文字変換前のコマンドを記憶する形になると思います。

from bcdice.

ysakasin avatar ysakasin commented on June 11, 2024

📝 choice2[A,B,C,D] の機能はダイスロールの表記と整合性が取りづらくなるので入れなかった

from bcdice.

ysakasin avatar ysakasin commented on June 11, 2024

n個とる、を割と真面目に実装したい。形式は choice2[A,B,C,D] が個人的にベスト。
choice[1-5] のようなRange指定は限定的機能として実装したい。

Rangeの発動条件

OK

[1-5], [2-11], [a-z], [A-Z]
数字の範囲、アルファベット1文字の範囲

NG

[6-5], [a-aa], [aa-zz], [a-c, y, z], [a-c, i-k]
アルファベット複数文字の範囲、範囲意外の項目の指定、範囲の複数指定

from bcdice.

GenKuzumochi avatar GenKuzumochi commented on June 11, 2024

2choice[A,B,C,D] のほうが2d6等と整合性があるようにも感じます。
空白区切りもとても便利しているので、2choice 3 4 5としても紛らわしくないのもメリットかも知れません。

Rangeは概ね賛成です。(将来的にchoice 1-5みたいにかけても良さそうではありますが)

choiceの関連提案として2BN6(コマンドの表記については要検討)で1~6で重複しないで2つ、という処理をしたいです。(choice2[1-6]相当)

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.