Play Journal Entries

Petit computer 3

Villitnakahara1226

10/09/2017 1:31 PM ·Spoilers

脱出ゲームとか作る時にコードから答えを知られたくない! っていうアレコレ。

Advertisement

Comment

This post has no comments.

  • というわけで画像のが試作品になります。 早い話、入力内容をRANDOMIZEでシード値にして乱数を取得、 その乱数が事前に取ってたデータ列と一致するかで正解を判定します。

    Yeahs0
    Played
  • メリットはもちろん「答えが予測できない」こと。 乱数なので、コードから答えを予測するのが難しいです。 (乱数に詳しい技術系の人なら多分予測できるかもしれないんでしょうけど……)

    Yeahs0
    Played
  • デメリット。 まず「正規の答え以外にも正解の乱数を出すシードがあるかもしれない」という点。 これをカバーするためには、要するに可能性をより多くするしかないわけで、 RNDSとHOWというパラメータでその辺をいじれる様に。

    Yeahs0
    Played
  • デメリット2。 WiiUと3DSで違う乱数吐いちゃうこと。 HARDWAREで分岐させる必要があり、更にそれぞれ実機でRNDを試して値を取らなきゃいけないのでメンドイ。

    Yeahs1
    Played
  • デメリットが割とデカくて、残念ながら100%のセキュリティにはならないんですが、 RNDSとHOWをめっちゃ上げることで、現実的に使用可能な確率くらいにまでは持っていけると思います。 たぶん……どうだろう?うーん。

    Yeahs0
    Played
  • 多分ガバガバな点があると思うので是非ツッコミください。

    Yeahs0
    Played
  • なるほどーー!!!

    Yeahs0
    Played
  • WiiUと乱数違うってマジですか(゚Д゚;)今作ってるの、そのまま作ると動かない所だった… 一応、将来の事(いずれハードが壊れる事を考えて、後々、自分の作品をPCに完全移植するとか)を考えて、乱数使う時も、結果をデータ化しておこうとは思ってましたけどね!

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-DPU-2NL9-Y38-RABF

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: