This is a command-line version of the classic Battleships game, implemented in pure Ruby following the principles of Domain-Driven Design (DDD).
git clone https://github.com/rapides/ruby_battleships.git
cd ruby_battleships
Make sure you have Ruby v3.3.5 installed.
If you don't have Bundler:
gem install bundler
Install ruby gems:
bundle install
- Ruby (=3.3.5)
- Bundler
- RSpec (for tests)
Execute main.rb
file from the root directory:
ruby main.rb
The project uses rspec for test execution:
bundle exec rspec
Feel free to open issues or submit PRs with improvements! 🛠