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
- Host: GitHub
- URL: https://github.com/usernaimandrey/brain_games
- Owner: usernaimandrey
- License: mit
- Created: 2022-12-20T22:12:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-16T22:29:22.000Z (almost 3 years ago)
- Last Synced: 2025-03-08T16:15:48.525Z (over 1 year ago)
- Topics: brain, games, ruby
- Language: Ruby
- Homepage:
- Size: 82 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# BrainGames
[](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:
[](https://asciinema.org/a/v5lrBYirDiHOUpulk4obnSugN)
### Play brain even on english and russion:
[](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).