# @santi100/randomjs-game

> Random Number Game: Guess the number!

Latest version **0.0.1** (published 2023-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @santi100/randomjs-game
pnpm add @santi100/randomjs-game
yarn add @santi100/randomjs-game
bun add @santi100/randomjs-game
```

Provides the command `randomjs-game`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-06-30 |
| First published | 2023-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 22.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | santi100a |
| Maintainers | santi100 |
| Keywords | cli, cli-game, santi100, nodejs, random-numbers |

## Links

- npm: https://www.npmjs.com/package/@santi100/randomjs-game
- Repository: https://github.com/santi100a/randomjs-game
- npm.io page: https://npm.io/package/@santi100/randomjs-game

## Dependencies (4)

- [commander](https://npm.io/package/commander.md) ^11.0.0
- [readline-sync](https://npm.io/package/readline-sync.md) ^1.4.10
- [@santi100/random-lib](https://npm.io/package/@santi100/random-lib.md) ^1.1.6
- [@santi100/coloring-lib](https://npm.io/package/@santi100/coloring-lib.md) ^1.1.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2023-06-30

## README

# Santi's Random Numbers Game

[![Build Status][build status badge]][actions]
[![npm homepage][npm homepage badge]][npm homepage]
[![GitHub stars][gh stars badge]][repo]
[![License][license badge]][repo]

[build status badge]: https://github.com/santi100a/randomjs-game/actions/workflows/ci.yml/badge.svg
[npm homepage badge]: https://img.shields.io/npm/v/@santi100/randomjs-game
[gh stars badge]: https://img.shields.io/github/stars/santi100a/randomjs-game.svg
[license badge]: https://img.shields.io/github/license/santi100a/randomjs-game.svg

[actions]: https://github.com/santi100a/randomjs-game/actions
[npm homepage]: https://npmjs.org/package/@santi100/randomjs-game
[repo]: https://github.com/santi100a/randomjs-game

## Installation via NPM

- Using NPM: `npm install -g @santi100/randomjs-game`
- Using Yarn: `yarn global add @santi100/randomjs-game`
- Using PNPM: `pnpm install -g @santi100/randomjs-game`

## Usage

### How to Run

Execute `npx @santi100/randomjs-game [options]`. Options are detailed below.

### Flags

`-c, --no-clear`: Never clear the screen.
`-i, --no-initial-clear`: Don't clear the screen at startup.
`-g, --no-guess-clear`: Don't clear the screen after every guess.
`-m, --monochrome`: Don't use colors.
`-h, --help`: Display help for command.

### Workflow

The game starts by asking you for your name. Type your name or hit ENTER to use the name
"Player".

After this, the game will ask for your guess. Type a positive whole number
between 0 and 30 (both inclusive) and hit ENTER.

If your guess is equal to the right answer, the game will congratulate you and ask you to play again.
If you say no, the game will exit; otherwise, the game will generate a new random answer and
go back to the point where it asks for your guess.

---
_Source: https://npm.io/package/@santi100/randomjs-game · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
