https://github.com/tanhongit/rails-tic-tac-toe-project
This is the tic tac toe game with multiple modes: play with AI, two-player mode with lots of customization, invincible mode.
https://github.com/tanhongit/rails-tic-tac-toe-project
javascript minimax-algorithm p5js p5js-tic-tac-toe rails rails-tic-tac-toe tanhongit-game tanhongit-rails tic-tac-toe tic-tac-toe-game tic-tac-toe-invincible tic-tac-toe-rails tictactoe tictactoe-game
Last synced: 4 months ago
JSON representation
This is the tic tac toe game with multiple modes: play with AI, two-player mode with lots of customization, invincible mode.
- Host: GitHub
- URL: https://github.com/tanhongit/rails-tic-tac-toe-project
- Owner: tanhongit
- License: mit
- Archived: true
- Created: 2020-08-10T08:15:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-19T00:46:24.000Z (almost 2 years ago)
- Last Synced: 2024-10-21T06:50:02.956Z (7 months ago)
- Topics: javascript, minimax-algorithm, p5js, p5js-tic-tac-toe, rails, rails-tic-tac-toe, tanhongit-game, tanhongit-rails, tic-tac-toe, tic-tac-toe-game, tic-tac-toe-invincible, tic-tac-toe-rails, tictactoe, tictactoe-game
- Language: Ruby
- Homepage: https://railstictactoe.herokuapp.com/
- Size: 1.45 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Welcome to Rails Tic-Tac-Toe Project
This is the tic tac toe game with multiple modes: play with AI, two-player mode with lots of customization, invincible mode.
# Demo
You can try it at https://railstictactoe.herokuapp.com
## Support for me
Support this project :stuck_out_tongue_winking_eye: :pray:# 1. Technology
- Ruby on Rails# 2. Configuration requirements
We are going to build the web application using:
- Rails 6.0.3.2
- Ruby 2.7.1# 3. Modes
- Play Rank with AI
- Invincible mode
- Two-player mode# 4. Runing
### 4.1. Clone Repo
```
$ git clone https://github.com/TanHongIT/rails-tic-tac-toe-project
$ cd rails-tic-tac-toe-project
```### 4.2. Bundle Install
```
$ bundle install
```### 4.3. Yarn Install
```
$ yarn install
```### 4.4. Create database with Postgresql
You must change the appropriate database configuration
Change configuration at _"**config/database.yml**"_ with Postgresql.
```ruby
default: &default
adapter: postgresql
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
username: railstictactoe
password: 1234
host: localhost# tutorial for ubuntu linux:
# sudo -u postgres psql
# create user "railstictactoe" with password '1234';
# create database "railstictactoe" owner "railstictactoe";development:
<<: *default
database: railstictactoe# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: railstictactoe_testproduction:
<<: *default
database: railstictactoe_production
```You must change the username, password and database name accordingly!
### 4.5. run rails db:migrate
```
$ rails db:migrate
```### 4.6. Run server
```
$ rails s
```Now go to http://localhost:3000
# 5. Images demo
#### HomePage.

#### Play Rank With AI.

#### High Score Rank Screen.

#### Two-player Mode.

#### Two-player Mode customization.

#### Invincible mode.

_**Read more:**_ Tic Tac Toe Invincible with Javascript, HTML, CSS : https://github.com/TanHongIT/JavaScript-Tic-Tac-Toe-Project