Skip to content

rapides/ruby_battleships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧱 Battleships (Ruby CLI)

This is a command-line version of the classic Battleships game, implemented in pure Ruby following the principles of Domain-Driven Design (DDD).


📦 Installation

1. Clone the repository

git clone https://github.com/rapides/ruby_battleships.git
cd ruby_battleships

2. Install dependencies

Make sure you have Ruby v3.3.5 installed.

If you don't have Bundler:

gem install bundler

Install ruby gems:

bundle install

🧰 Dependencies

  • Ruby (=3.3.5)
  • Bundler
  • RSpec (for tests)

▶️ Running the Game

Execute main.rb file from the root directory:

ruby main.rb

🧪 Running Tests

The project uses rspec for test execution:

bundle exec rspec

🙌 Contributing

Feel free to open issues or submit PRs with improvements! 🛠

About

Battleships game (Ruby CLI)

Resources

Stars

Watchers

Forks

Languages