Scratch Card Game https://game-card.herokuapp.com
This project is focused on building a networked game for scratch cards, where players can play a traditional button-counting game but with the added twist of using six cards instead of three. The game will be built using Ruby on Rails framework for web development.
In order to run this project, you will need:
- Ruby on Rails (version 7.0 or higher)
- A web server: Heroku and Pusher for Websocket
- A database management enviroment system: PostgreSQL on Production and SQLite3 on Development
- To get started with this project, you can clone the repository to your local machine using the following command:
git clone https://github.com/tuanle03/Scratch_Cards.git
- Once you have cloned the repository, navigate to the project directory and install the necessary dependencies by running:
bundle install
- Next, you will need to set up the database by running the following commands:
rails db:migrate
rails db:seed
- Finally, start the web server by running:
rails server
- You should now be able to access the game by visiting
http://localhost:3000
in your web browser.
The project is structured as follows:
app/controllers
contains the controllers for the game logic.app/models
contains the models for the game objects such as players and cards.app/views
contains the views for rendering the game interface.config/routes.rb
contains the routing configuration for the game.
The project also includes a spec directory containing the tests for the project.
If you find any issues with the code in this repository or would like to contribute improvements, feel free to open an issue or submit a pull request.