An open API service indexing awesome lists of open source software.

https://github.com/usernaimandrey/brain_games

This cli Games
https://github.com/usernaimandrey/brain_games

brain games ruby

Last synced: over 1 year ago
JSON representation

This cli Games

Awesome Lists containing this project

README

          

# BrainGames

[![CI](https://github.com/usernaimandrey/brain_games/actions/workflows/main.yml/badge.svg)](https://github.com/usernaimandrey/brain_games/actions/workflows/main.yml)

## **Brain Games This is a collection of 5 games:**

1. Brain: Even - guess even or not even number

2. Brain: Calc - test your basic math skills

3. Brain: GCD - find the greatest common divisor

4. Brain: Prime - count a prime number or not

5. Brain: Progression - write the missing number in progression

## Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add brain_gemes

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install brain_gemes

or

clone this repository

```shell
$ git clone https://github.com/usernaimandrey/brain_games.git
```

at the root of the project

```
$ make build
```

and play games

```
$ barin_games -g or --game=NAME -l --language=LANGUAGE
```

## Usage

How palay:

### Options:

[![asciicast](https://asciinema.org/a/v5lrBYirDiHOUpulk4obnSugN.svg)](https://asciinema.org/a/v5lrBYirDiHOUpulk4obnSugN)

### Play brain even on english and russion:

[![asciicast](https://asciinema.org/a/549554.svg)](https://asciinema.org/a/549554)

The list of available games can be viewed by calling the --rulle option

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/brain_gemes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/brain_gemes/blob/master/CODE_OF_CONDUCT.md).

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Code of Conduct

Everyone interacting in the BrainGemes project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/brain_gemes/blob/master/CODE_OF_CONDUCT.md).