Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.06 KB

README.md

File metadata and controls

61 lines (37 loc) · 1.06 KB

Tres-Rayas

It's just a basic game. It still has some issues but i'm starting practice C++ so I expect fix them soon.

Tres Rayas it's a simple game where the first one make a line with their caracter.

It's basically a matrix two dimensional array 3x3

Game

This is the board where the player's character is 'X' and the machine is 'O'

* * *

* * *

* * *

You must type the coordinate where you will write the character for example

Input: 0 Input: 2

Output:

* * X

* * *

* * *

AI

There isn't AI the program just choose a random number with the function rand() between 0 and 2 due to the numbers of columns and rows.

Victory

First Case

X X X

O * O

O X O

Second Case

O X O

O X O

X X X

Third Case

X O O

X * O

X O O

You cannot win in this examples due to some issues but I hope fix them soon

X O *

O X O

O O X

And well that's all about this game I hope make my english better soon :s