<commit_before># ConnectFour

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'connect_four'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install connect_four

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it ( https://github.com/[my-github-username]/connect_four/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
<commit_msg>update readme file<commit_after># ConnectFour

A connect four clone written in test driven development (rspec) for [The Odin Project](http://www.theodinproject.com/ruby-programming/testing-ruby). To play it, run `bin/connect_four.rb` from the root directory. To test it, run `rspec` from the root directory.

To check if there is a winner I have used my own implementation of two matrix operations: rotating and picking up diagonals. Then I have used regex to check if there are four neighbouring characters next to each other.

{'fraction_non_alphanumeric': 0.0852372583479789, 'fraction_numerical': 0.004393673110720563, 'mean_word_length': 4.297674418604651, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6551106', 'n_tokens_mistral': 338, 'n_tokens_neox': 317, 'n_words': 150}