Code Monkey home page Code Monkey logo

pandemic's Introduction

Spec Example Input Expected Output
Creates three cities with 2 disease points on the board 0 minutes Seattle: diseaseCount: 0, Paris: diseaseCount: 0, Tokyo: diseaseCount: 2.
"Infect" a city Seattle: diseaseCount: 0, Paris: diseaseCount: 0, Tokyo: diseaseCount: 2 - => Infect Paris Seattle: diseaseCount: 0, Paris: diseaseCount: 1, Tokyo: diseaseCount: 2
"Infect" a city after two minutes of time Seattle: diseaseCount: 0, Paris: diseaseCount: 0, Tokyo: diseaseCount: 2 - => Infect Paris at 2 minute timer Seattle: diseaseCount: 0, Paris: diseaseCount: 1, Tokyo: diseaseCount: 2
"Infect" a same city after another two minutes of time Seattle: diseaseCount: 0, Paris: diseaseCount: 1, Tokyo: diseaseCount: 2 - => Infect Paris at 4 minute timer Seattle: diseaseCount: 0, Paris: diseaseCount: 2, Tokyo: diseaseCount: 2
"Infect" nearby cities when the diseaseCount limit is maxed out at 3 Seattle: diseaseCount: 0, Paris: diseaseCount: 3, Tokyo: diseaseCount: 2 - => Infect Paris Seattle: diseaseCount: 1, Paris: diseaseCount: 3, Tokyo: diseaseCount: 3
Randomize the city infections - every 2 minutes, the total of the existing diseaseCounts increases by 1 Seattle: diseaseCount: 1, Paris: diseaseCount: 1, Tokyo: diseaseCount: 1 - => Infect X at 2 minute timer Seattle: diseaseCount: 2, Paris: diseaseCount: 1, Tokyo: diseaseCount: 1
construct a player class starting off with no moves New game - 0 minutes Player created
Player earns 1 move after 1 minute Player: moveCount: 0, => 1 minute Player: moveCount: 1
Player earns 1 move after 2 minutes Player: moveCount: 1, => 2 minutes Player: moveCount: 2
Player can "treat" disease in a city as 1 move Player: moveCount: 1, Seattle: diseaseCount: 1, Paris: diseaseCount: 1, Tokyo: diseaseCount: 1 -- "treat" Seattle Player: moveCount: 0, Seattle: diseaseCount: 0, Paris: diseaseCount: 1, Tokyo: diseaseCount: 1
construct an active location feature for the "player" 0 minutes Player is "in" Seattle
Player can travel to a nearby city as 1 move Player: moveCount: 1, location: Seattle; Seattle: diseaseCount: 1, Paris: diseaseCount: 1, Tokyo: diseaseCount: 1 -- move to Paris Player: moveCount: 0, location: Paris; Seattle: diseaseCount: 1, Paris: diseaseCount: 1, Tokyo: diseaseCount: 1

pandemic's People

Contributors

example123 avatar

Watchers

 avatar  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.