npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

frontend-project-lvl1-lena-chepkasova

v2.0.3

Published

JS project N1 - brain games

Downloads

3

Readme

https://github.com/LennyCh/frontend-project-lvl1/actions

This file contains a description of five games:

  1. Determination of an even number - "brain-even";
  2. Calculator. Arithmetic expressions to be evaluated - "brain-calc";
  3. Determination of the greatest common divisor - "brain-gcd";
  4. Progression. Search for missing numbers in a sequence of numbers - "brain-progression";
  5. Definition of a prime number.

You need to answer correctly three questions in a row. If you do not answer one of the questions, the game will end. But you can run it again. Below you will see a more detailed description of each of these games, and how to run them.

  1. Brain-even.

You are shown a random number. And you need to answer "yes" if the number is even, or "no" if it is odd.

To run this game enter "make brain-even" from root directory (~programms/frontend-project-lvl1).

A successful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! Answer "yes" if the number is even, otherwise answer "no" Question: 7 Your answer: no Correct! Question: 68 Your answer: yes Correct! Question: 59 Your answer: no Correct! Congratulations, Sam!

An unsuccessful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! Answer "yes" if the number is even, otherwise answer "no" Question: 99 Your answer: yes "yes" is wrong answer ;(. Correct answer was "no" Let's try again, Sam

  1. Brain-calc.

You are shown a random mathematical expression (addition, subtraction or multiplication). You need to calculate it and write the correct answer.

To run this game enter "make brain-calc" from root directory (~programms/frontend-project-lvl1).

A successful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! What is the result of the expression? Question: 73 - 23 Your answer: 50 Correct! Question: 64 * 45 Your answer: 2880 Correct! Question: 60 + 29 Your answer: 89 Correct! Congratulations, Sam!

An unsuccessful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! What is the result of the expression? Question: 1 - 62 Your answer: 61 "61" is wrong answer ;(. Correct answer was "-61" Let's try again, Sam!

  1. Brain-gcd.

You are shown two random numbers. You must calculate and enter the largest common divisor of these numbers.

To run this game enter "make brain-gcd" from root directory (~programms/frontend-project-lvl1).

A successful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! Find the greatest common divisor of given numbers. Question: 93, 55 Your answer: 1 Correct! Question: 25, 50 Your answer: 25 Correct! Question: 11, 77 Your answer: 11 Correct! Congratulations, Sam!

An unsuccessful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! Find the greatest common divisor of given numbers. Question: 15, 19 Your answer: 8 "8" is wrong answer ;(. Correct answer was "1" Let's try again, Sam

  1. Brain-progression.

You are shown 10 numbers forming an arithmetic progression. One of the numbers in this progression is missing. You must determine this number.

To run this game enter "make brain-progression" from root directory (~programms/frontend-project-lvl1).

A successful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! What number is missing in the progression? Question: 24,78,132,186,240,294,348,402,..,510 Your answer: 456 Correct! Question: 65,124,183,242,301,..,419,478,537,596 Your answer: 360 Correct! Question: 20,65,110,155,200,245,290,335,..,425 Your answer: 380 Correct! Congratulations, Sam!

An unsuccessful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! What number is missing in the progression? Question: 79,111,143,..,207,239,271,303,335,367 Your answer: 333 "333" is wrong answer ;(. Correct answer was "175" Let's try again, Sam

  1. Brain-prime.

You are shown a random number. And you need to answer "yes" if the number is prime, otherwise answer "no".

To run this game enter "make brain-prime" from root directory (~programms/frontend-project-lvl1).

A successful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! Answer "yes" if given number is prime. Otherwise answer "no". Question: 61 Your answer: yes Correct! Question: 83 Your answer: yes Correct! Question: 25 Your answer: no Correct! Congratulations, Sam!

An unsuccessful game looks like this: Welcome to the Brain Games! May I have your name? Sam Hello, Sam! Answer "yes" if given number is prime. Otherwise answer "no". Question: 10 Your answer: yes "yes" is wrong answer ;(. Correct answer was "no" Let's try again, Sam