Coder Social home page Coder Social logo

lifeline's Introduction

LifeLine

这是个有趣的实验,你们都是囚犯,给你们N颗豆子,你们排队拿。
最后拿的最多和最少的人死。如果2及以上个人拿了一样的个数,全部死。
相信你们都想活下来。 2个人故意相约自杀带死全部人的,内心是有多丑恶。
不要以为上百人参与,一次死2人活下来机率很大。大量实验会使你活下来的概率在统计数据上体现出来。

从这里fork一份到自己的github,
在prisoner包里添加自己的Prisoner类,名字叫“你的英文名+Prisoner”, 实现Prisoner接口,并实现你的算法。
然后提交pull request。注意只提交自己添加的类。

lifeline's People

Contributors

jude95 avatar haruue avatar soulmatexd avatar blackdog017 avatar simonla avatar alice314 avatar jianjun598 avatar jefmei avatar cquptzousheng avatar caizhengang avatar pinkd avatar acemurder avatar

Watchers

James Cloos avatar

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.