Sudoku-Game

Table of contents

Installation

  • It's required to install ruby 2.7.0

    • If already installed try to get version Using Comamnd
    ruby -v
  • It's prefered to install pry on Ruby

    • If already installed try to get version Using Comamnd
    pry -v
  • You also may need to install this Colorize package for advanced UI colors

    gem install colorize

Sudoku

Introduction

This is a Ruby version of Sudoku Game :D

Todo-Board

Usage

NOTE: Make sure you are in the same directory of project files

open CMD or Terminal, and cd to the project directory

In trermial write

pry

then in pry write

load 'Sudoku_Game.rb'
g = SudokuGame.new
g.play

It works!! 😃

Demo

       3 |    2    | 6       |
 9       | 3     5 |       1 |
       1 | 8     6 | 4       |
------------------------------
       8 | 1     2 | 9       |
 7       |         |       8 |
       6 | 7     8 | 2       |
------------------------------
       2 | 6     9 | 5       |
 8       | 2     3 |       9 |
       5 |    1    | 3       |
------------------------------
Enter a position of tile Ex.`0 2`: 0 1
Enter a new value for the tile Ex.`5`: 4

    4  3 |    2    | 6       |
 9       | 3     5 |       1 |
       1 | 8     6 | 4       |
------------------------------
       8 | 1     2 | 9       |
 7       |         |       8 |
       6 | 7     8 | 2       |
------------------------------
       2 | 6     9 | 5       |
 8       | 2     3 |       9 |
       5 |    1    | 3       |
------------------------------
Enter a position of tile Ex.`0 2`: