functions.cpp
#include <iostream>
using namespace std;
int player = 1;
int position = 0;
string row[9] = {" "," "," "," "," "," "," "," "," "};
void greet(){
cout << "welcome to tic tac toe game or\n";
cout << "as we call it x-o,you will play against\n";
cout << "your friend in this game,of course \n\n";
cout << "player 1 is x \n player 2 is o \n\n\n";
This file has been truncated. show original
ttt.cpp
#include <iostream>
#include "ttt.hpp"
int main(){
greet ();
draw();
set();
update_draw();
change_player();
take_turn();
end_game();
This file has been truncated. show original
ttt.hpp
#include <vector>
void greet();
void draw();
bool fill();
bool is_winner();
void set();
void update_draw();
void take_turn();
void end_game();
void change_player();
This file has been truncated. show original