Skip to content

pstrzalk/ruby-on-rails-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

22b4964 · Sep 27, 2024

History

40 Commits
Jun 9, 2024
Jan 30, 2024
Jan 24, 2024
Jan 30, 2024
Jan 31, 2024
Dec 14, 2023
Sep 27, 2024
Dec 14, 2023
Apr 11, 2024
Dec 14, 2023
Dec 14, 2023
Dec 14, 2023
Dec 14, 2023
Jan 21, 2024
Jan 24, 2024
Dec 14, 2023
Dec 14, 2023
Jan 21, 2024
Apr 11, 2024
Jan 30, 2024
Jan 7, 2024
Sep 27, 2024
Jan 20, 2024
Dec 14, 2023
Mar 23, 2024

Repository files navigation

Ruby on Rails - the Game

This application is the subject of workshops organized for Ruby Warsaw Community Conference 2024. It tells an intense story of a love interrupted by evil magic. Will the Prince David rescue Princess Ruby?

Rails World 2024

The game and its concepts were presented at Rails World 2024 in Toronto. You can find the slides in this presentation

A special version of the game, with updated graphics and logic was prepared for it, you can find it in rails-world branch.

Disclaimer

This code was created for fun and for fun only. It has obvious design flaws and is not perfect by any standards. But it was awesome to write and to share with all Ruby fans.

Installation

To run the game, you need to have PostgreSQL and Redis.

# Clone the repository
$ git clone https://github.com/pstrzalk/ruby-on-rails-game
$ cd ruby-on-rails-game

# Install gems
$ bundle

# Create database and run migrations
$ bin/setup

# Run game server
$ bin/dev

# [In another terminal] Run game loop
$ rails game:run

# Open in a browser
$ open http://localhost:3000

Alternatively, you may use Docker Compose - just use the provided configuration.

Testing

This application uses Minitest library for testing purposes. Run the following instruction and always keep the overall test coverage at 100% (and beyond).

$ rails test

Keep the code readable

The application uses Rubocop as code linter. Please run

$ rubocop

and keep the output free of offenses.

Have fun

Is obligatory!

About

Game written purely in Ruby on Rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published