Giter VIP home page Giter VIP logo

Comments (6)

halfrost avatar halfrost commented on May 14, 2024

嗯嗯。。你是简书上的那个人么?哈哈。。简书上也有一个人问了一个和你一样的问题。我一会改一下描述。其实应该说切牌只能上下切,不能乱切。因为如果上下切牌,由于循环序列,上下切牌都是一样的,并不影响全排列。我这样说,应该更清楚吧。

from halfrost-field.

halfrost avatar halfrost commented on May 14, 2024

关于牌的顺序其实是不必知道的。不必知道整个32张牌的顺序,(当然知道会更好),因为每5个都是可以推算的。只要能保证牌是一个德布鲁因序列就可以,这样就能保证是一个全排列。

from halfrost-field.

halfrost avatar halfrost commented on May 14, 2024

@wellcheng 我更新了一下文章,你看看 f3b7780 这个commit 哈~

from halfrost-field.

wellcheng avatar wellcheng commented on May 14, 2024

还有一个疑问,为什么只需要知道谁拿了黑色的牌,就能确定其在序列中的位置?
我的理解是,如果知道某个人拿了黑色牌,我只能确定他所代表的 5 bit 序列为 「0xxxx」,按理说,我只有知道他具体是黑色的哪张牌,我才能知道他的全排列,比如 01001 ,然后根据顺序借此推算出前后。

但是如果知道了具体的值,那么别人就认为你是强行记住了所有的顺序,无法体现魔术了。

from halfrost-field.

halfrost avatar halfrost commented on May 14, 2024

嗯嗯。我懂你说的意思。还是需要知道初始的32张牌的顺序的。开始让观众洗牌,默认的就给他们心里暗示,这些牌是都洗过的,顺序变过了。

from halfrost-field.

halfrost avatar halfrost commented on May 14, 2024

感谢你的补充,我更新到文章里面去了。具体见 6f6c3e8 这个commit,感谢感谢~

from halfrost-field.

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.