// Tic-Tac-Toe
// Plays the game of tic-tac-toe against a human opponent
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
// global constants
const char X = 'X';
const char O = 'O';
const char EMPTY = ' ';
const char TIE = 'T';
const char NO_ONE = 'N';
// function prototypes
void instructions();
char askYesNo(string question);
int askNumber(string question, int high, int low = 0);
char humanPiece();
char opponent (char piece);
void displayBoard(const vector<char>& board);
char winner(const vector<char>& board);
bool isLegal(const vector<char>& board, int move);
int humanMove (const vector<char>& board, char human);
int computerMove(vector<char> board, char computer);
void announceWinner (char winner, char computer, char human);
// main function
int main()
{
int move;
const int NUM_SQUARES = 9;
vector<char> board(NUM_SQUARES, EMPTY);
instructions();
char human = humanPiece();
char computer = opponent(human);
char turn = X;
displayBoard(board);
while (winner(board) human)
{
cout << winner << "'s won!\n";
cout << "No, no! It cannot be! Somehow you tricked me, human.\n";
cout << "But never again! I, the computer, so swear it!\n";
}
else
{
cout << "It's a tie.\n";
cout << "You were most lucky, human, and somehow managed to tie me.\n";
cout << "Celebrate. . . for this is the best you will ever achieve.\n";
}
}
jubilife city i think
You have to beat(or Catch) Dialga first.
Beat the first gym leader: Roark.
gotta beat the other gym leaders first and them come back to fight her
train your Pokemon to about lv 20
You beat the first gym leader, Roark in Oreburgh City.
you beat the gym leader
She is the 5th, gym leader, you have to beat pastoria gym first the vielstone! then go back to harthome city and you can find her in her gym
Beat the forth gym (fighting).
acultly lakefront
you beat everyone in the gym
beat the league