Code Monkey home page Code Monkey logo

js-console-apps's Introduction

js-console-apps

Go to the proper folder

cd dr_name

And run in a console:

poker

The program is showing random poker hand.

node deal.js

weighing scale

There are 8 basketballs and 1 scale. 7 of them weigh the same. 1 of them has a different weight, (it's heavier or lighter). How do you find the odd ball with 2 weighs? The program is showing the way.

Enter in console:

node scale.js

hunter game

Do you like treasure hunts? There is an array in board.js. The values in the array are clues. Each cell contains an integer between 11 and 55; for each value the ten's digit represents the row number and the unit's digit represents the column number of the cell containing the next clue. Starting in the upper left corner (at 1,1), use the clues to guide your search of the array. (The first three clues are 11, 34, 42). The treasure is a cell whose value is the same as its coordinates. Your program should output the cells it visits during its search, and a message indicating where you found the treasure.

node app.js

bouncy simulator

There is an array in board.js. X – border, 0 – boards object can travel, 1 – bouncing object. The program is to show how the object would travel and bounce against the walls. The program is to end when object comes back to original position.

node app.js

bouncy simulator extended version

There is an array in board.js. Y – when bouncing objects enters it move it to random direction other that it came and Y turns into 0, X – border, 0 – boards object can travel, 1 – bouncing object. The program is to show how the object would travel and bounce against the walls. Bouncing objects starts in any corner. 1 and Y position may vary.

node app.js

js-console-apps's People

Contributors

monika-stempniak 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.