Skip to content

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

Notifications You must be signed in to change notification settings

ericsr316/Tres-Rayas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages