程序代写代做 algorithm go game Lab3: Othello

Lab3: Othello
(120 pts, Due Sunday, Mar 15, midnight)
Note: you may work with a partner or you may work alone. If you choose to work with a partner, make sure you both turn in
the lab, and make sure you include both names on the lab. Equally, note your partner’s name in canvas. if your partner flakes on you, you are still responsible for completing the lab and turning it in on time.
To turn in:
 Screenshot of running code
 Code that compiles
 Your partner’s name (if you worked with a partner)
Please be aware that
Functions are scored as below, and then there are 24 points for getting everything working together as a game. Note: you asked for a challenge. This may be challenging for some of you. Plan your time accordingly
Note 2: If a pop-up box arises that says “Errors exist, do you wish to continue?” Your code DOES NOT COMPILE. Don’t click continue. Fix your code. You will not receive credit for code that does not compile.
Recursion:
This lab must be done using all recursive functions. You may not have any while, for, or do while loops. All loops must be implemented recursively.
My biggest hint for this if you are not comfortable with recursion is that every time you would want to write a loop, make that its own recursive function. So if you have a loop inside of a loop, you’d want a recursive function (with iterative count parameter) and that function will call another recursive function (with its own iterative count parameter) before it calls itself again.
Because these functions can be visualized and implemented in more than one way, I am requiring certain functions and allowing you to decide whether to include certain functions. You may change the parameters (adding, most likely, or subtracting parameters as you deem) as long as you use the struct given in the form given and the main, the startgame, and the playgame functions work as implemented.
40 pts: Getting everything to work together successfully!
Contents
To turn in: ………………………………………………………………………………………………………………………………………………………………. 1 Recursion: ………………………………………………………………………………………………………………………………………………………………….. 1
Part 1: ……………………………………………………………………………………………………………………………………………………………………….. 2 Problem 0: (0 pts): ………………………………………………………………………………………………………………………………………………. 2 Problem 1: (10 pts): ……………………………………………………………………………………………………………………………………………… 2
Part 2: Othello…………………………………………………………………………………………………………………………………………………………. 2 Code:……………………………………………………………………………………………………………………………………………………………………… 4 /**************Functions you are required to write: ******************/ …………………………………………………………….. 4
void makeBoard(GameBoard *game, int ct, bool flag); // 10 pts ………………………………………………………………………………… 4 void getSize(int &size); // 3 pts ……………………………………………………………………………………………………………………………… 5 char ckwin(GameBoard *game); // 12 pts ………………………………………………………………………………………………………………. 5 void printBoard(GameBoard *game, int ct); //8 pts …………………………………………………………………………………………………. 5 bool compplacepiece(GameBoard *game); // 20 pts ……………………………………………………………………………………………….. 5 bool placepieceperson(GameBoard *game); //20 pts ………………………………………………………………………………………………. 5
/*******Functions I wrote and you may wish to write ***************/ ……………………………………………………………………. 5 /****************Functions I am giving you ************************/………………………………………………………………… 6 Extra Credit Options: ……………………………………………………………………………………………………………………………………………….. 8
Sample Output:…………………………………………………………………………………………………………………………………………………………… 8 1

Part 1:
Problem 0: (0 pts): Make sure you understand how the fibonacci sequence works on the stack. If it helps, use a print statement to print what is going into the recursively called function each time, what number is entering the function, and what
is being returned. To make it even clearer, you might want to use 2 recursive functions that do the exact same thing, only one prints out “func1)” and one prints out “func2”. Then the left recursive call can call func1, and the right can call func2, so you can visualize better what is happening.
Or if you’ve got all this down pat, just make sure you understand it and how functions are stored on the stack during this binary recursive call.
Code:
#include #include using namespace std;
int func(int k) {‘
if (k <= 2) { return 1; } return(func(k-1) + func(k-2)); } int main() { cout << func(7); return 0; } Problem 1: (10 pts): In class we saw our first sorting algorithm: selection sort. Write the function recursively (Note: it can be done within one function using a bunch of flags, but I find it’s easier to think of recursion this way: every time you’d write a separate loop, make a separate recursive function for that. So in the selection sort algorithm, the first function would be the inner loop, and the second function would be the outer loop. Make sure it works on lists that are already in order, lists that are in reverse order, and completely random lists. Part 2: Othello For this lab, you will be creating the game, Othello. The game involves 2 player turn-taking, with one player being black pieces, and another player being orange pieces, all being placed on a square board. Every time a player takes a turn, they try to place it so that their piece and another of their pieces already on the board surrounds the other player’s pieces, so that each of the in- between pieces is flipped to that player’s color. The pieces can be diagonal, up/down, or left/right. If a player is unable to place a piece on the board such that it flips at least one of the other player’s pieces, then that player forfeits their turn. Whoever has the most pieces on the board at the end of the game wins. I’ve included an extremely brief transcript here of my playing against the computer (with an extremely small board) to give you an idea of how the game is played, and then a full transcript of my output at the end of this file. /*******************************************************************************************************************/ Size is 4 0123 0---- 1-XO- 2-OX- 3---- How many players? (0,1, or 2) 1 2 X Enter the x coordinate: 3 X Enter the y coordinate: 1 changing 2 and 1 to X 0123 0---- 1-XO- 2-XX- 3-X-- Updating best to 1 and 0 Placing piece at 3 and 0 changing 2 and 1 to O 0123 0---- 1-XO- 2-OX- 3OX-- X Enter the x coordinate: 2 X Enter the y coordinate: 0 changing 2 and 1 to X 0123 0---- 1-XO- 2XXX- 3OX-- Updating best to 1 and 0 Placing piece at 3 and 2 changing 2 and 2 to O changing 3 and 1 to O 0123 0---- 1-XO- 2XXO- 3OOO- X Enter the x coordinate: 1 X Enter the y coordinate: 3 changing 1 and 2 to X 0123 0---- 1-XXX 2XXO- 3OOO- . . . (middle of game deleted for sake of brevity – if you want to see a complete transcript, view the bottom of this file) . . . 0123 0X--O 1OXOO 2OOXO 3OOOO X Enter the x coordinate: 0 X Enter the y coordinate: 2 changing 1 and 2 to X 0123 0X-XO 1OXXO 3 2OOXO 3OOOO Updating best to 0 and 1 Placing piece at 0 and 1 changing 1 and 2 to O changing 1 and 1 to O changing 0 and 2 to O 0123 0XOOO 1OOOO 2OOXO 3OOOO Game over 0123 0XOOO 1OOOO 2OOXO 3OOOO O WON!!!! Play again? (Y or N) /*******************************************************************************************************************/ To read more about the rules, go here: http://www.hannu.se/games/othello/rules.htm This game may not contain any loops other than recursive loops. IMHO this lab is conceptually easy, but somewhat tedious to debug because each loop becomes its own function, so tracing through code involves a lot of scrolling. Plan for the extra time needed to debug. Code: The code you are responsible for writing is: #include #include #include using namespace std; struct GameBoard {
char **board; // the othello board
int size; //for the size of the board (it’s a square, so size is one dimension)
char p; //for current player (‘X’ or ‘O’)
int totalct; // for number of used squares (so that when the board is full, the game stops)
};
/**************Functionsyouarerequiredtowrite: ******************/
/* This function recursively makes the board by recursively calling the makeBoard2 function
* for each row being created. Once all rows have been created, it sets the middle four squares
* of the board to ‘X’ ‘O’
* ‘O’ ‘X’
* (See the printed board output at the end of these instructions for an example)
* This function takes the game, the current count, and a flag indicating whether
* this board was already allocated or needs to be allocated for the first time. */
void makeBoard(GameBoard *game, int ct, bool flag); // 10 pts
/* getSize takes an input parameter by reference. It randomly finds a size, and then rounds up to the next * even number.
*/
4

void getSize(int &size); // 3 pts
/*ckwin()
*This function takes as input the current game object (note: I had this function determine the count of * the current game object’s player, then switched the game object’s player to the other player, and
* counted the other player’s squares on the board, and compared the two, printing out who won.
*It returns nothing, but prints out who won.
*/
char ckwin(GameBoard *game); // 12 pts
/* this function takes as input the current game piece and the count, indicating which row is being printed out. It prints out the board, as seen in the output.
*/
void printBoard(GameBoard *game, int ct); //8 pts
/*compplacepiece:
This function is used for when the computer is playing as one (or both) of the players. It determines the location on the board where, if it places its piece, the most other pieces will be fixed. It is not terribly intelligent – it just picks randomly among the squares in which the most pieces will be flipped. This function takes as an input parameter the GameBoard object game. This function is not
recursive. It calls the function findbest spot to find the best x and y location on the board that
will flip the most pieces. If there are no spots on the board that flip pieces, the function prints
out that the player forfeits their turn and returns false. Otherwise, it calls figureoutflipping to
flip the legal pieces on the board after placing the game piece at location x y It returns true if
a piece was placed successfully, and false if there was nowhere to place a piece that would result
in flipping.
*/
bool compplacepiece(GameBoard *game); // 20 pts
/* This function is for a human placing a piece on the board. If the human chooses a square that is not located on the board, it alerts the human that they forfeited a turn and returns false. If the human chooses a square that does not result in any flipping, it alerts the human that they forfeited a turn and returns false. Otherwise it places the piece and flips all possible pieces in all possible directions
*/
bool placepieceperson(GameBoard *game); //20 pts
/*******Functions I wrote and you may wish to write ***************/
voidmakeBoard2(chararr[],intct,intsize); //fillsarowwith‘-‘character voidprintRow(chararr[],intsize,intct,boolflag); //printsasinglerowofaboard /* findbest spot
* this (recursive) function checks all x and y positions on the board and finds the best spot to
* place a piece on the board. If two spots are tied, my game randomly chooses between them. * In other words, if placing the piece at location 3,2 would result in 4 pieces being flipped, and
* then I find that location 5,3 would also result in 4 pieces being flipped, my game chooses
* randomly between those two places.
* For my version there were a boatload of input parameters: the current x that I am considering, * the current y that I am considering, the best x so far, the best y so far, the game board, the
* current count of the number of pieces being flipped, and the old count (aka the best count so * far) of the number of pieces that could be flipped at the bestx and the besty so far.
* I had a helper function for this function.
*/
int findbestspot(int currx, int curry,int &bestx,int &besty,GameBoard *game,int oldct);
/* This was my helper function for findbestspot – I used it for each row in the board. It was in here that I checked
5

*each direction to see how many pieces would be flipped if I placed a piece here. It went through the entire row, *updating the best x location and the bext y location and the best count (the oldct) if the current xy square resulted *in more flips than any previous square (and, as mentioned, if it tied with the previous best square, it picked randomly *between the two.
*/
int findbestspoty(int currx, int curry, int &bestx, int &besty, GameBoard *game, int oldct);
/*shouldweflip: this function takes as input the current x and y position, the direction, a game object, and the count
* how many pieces might be flipped. It returns that number.
*/
int shouldweflip(int x, int y, int xd, int yd, GameBoard *game, int ct);
/* flipping: I used this function when I’d already determined that the direction would indeed result in pieces being flipped, and thus I only had to worry about flipping pieces in this function */
void flipping(int x, int y, int xd, int yd, GameBoard *game);
/* figureoutflipping
* This function starts at location x,y on the board. It then looks in all 8 direction * surrounding x,y on the board to see whether any pieces can be flipped in that * direction. If they can, it flips them. This function takes as input parameters teh * x and y coordinates on the board where the piece will be placed, along with
* the GameBoard game object. It returns the total number flipped.
* Note: I wrote 2 helper functions for this: shouldweflip, which checks to see if any
* pieces can be flipped and if so, how many, and the function flipping, which then
* flips those pieces. I did not give you a function prototype for these because there * is more than one way to write these. It is up to you how you want to write these, * although I think you’ll want to write at least one of them.
*/
int figureoutflipping(int x, int y,GameBoard *game);
void ckwinrow(char p, char boardrow[], int size, int it, int *ct); //counts the number of times p occurs in a row
/****************Functions I am giving you ************************/
void startGame(GameBoard *game);
void playGame(bool fp1,bool fp2,GameBoard *game,bool whoplaysfirstflag);
int main() { srand(time(NULL));
int size = 0;
getSize(size); // gets the size for the game board. Note we only do this once for this game. GameBoard *game = new GameBoard; // places a gameBoard struct object on the heap. game->size = size; //sets the gameboard’s size
game->totalct = 4; // the 4 middle squares are taken
cout << "Size is " << game->size << endl; makeBoard(game,0,true); printBoard(game, 0); // for testing purposes startGame(game); } void playGame(bool fp1,bool fp2,GameBoard *game,bool whoplaysfirstflag) { bool s1 = true; bool s2 = true; if (fp1 && fp2 && (s1 || s2)) { 6 } else { } } game->p = ‘O’;
s1 = placepieceperson(game); printBoard(game,0);
game->p = ‘X’;
s2 = placepieceperson(game); printBoard(game,0);
if (whoplaysfirstflag) {
game->p = ‘X’;
else if (fp1 == false && fp2 == false && (s1 || s2)) { game->p = ‘X’;
s1 = compplacepiece(game); printBoard(game,0); game->p = ‘O’;
s2 = compplacepiece(game); printBoard(game,0);
} else {
} else {
} }
if (whoplaysfirstflag) {
game->p = ‘X’;
s1 = placepieceperson(game); printBoard(game,0);
game->p = ‘O’;
s2 = placepieceperson(game); printBoard(game,0);
s1 = placepieceperson(game); printBoard(game,0);
game->p = ‘O’;
s2 = compplacepiece(game); printBoard(game,0);
game->p = ‘X’;
s1 = compplacepiece(game); printBoard(game,0);
game->p = ‘O’;
s2 = placepieceperson(game); printBoard(game,0);
if (s1 == false && s2 == false || game->totalct == game->size *game->size) { cout << "Game over" << endl; printBoard(game,0); return; } playGame(fp1,fp2,game,whoplaysfirstflag); } void startGame(GameBoard *game) { cout << "How many players? (0,1, or 2)" << endl; int numplayers; 7 cin >> numplayers;
if (numplayers == 0) {
playGame(false,false,game, true); }
else if (numplayers == 1) {
bool whoplaysfirstflag;
rand()%2 == 0? whoplaysfirstflag = true:whoplaysfirstflag = false;
playGame(true,false,game,whoplaysfirstflag); }
else playGame(true,true,game,true); char w = ckwin(game);
if (w != ‘T’) {
cout << w << " WON!!!! " << endl; } else { cout << "Tie game. " << endl; } string s; cout << "Play again? (Y or N)" << endl; cin >> s;
if (s == “Y”) {
game->totalct = 4; makeBoard(game,0, false);
cout << "STARTING OVER" << endl; printBoard(game,0); startGame(game); } else { cout << "THANKS FOR PLAYING!" << endl; } } /*******************************************************************************************************************/ Extra Credit Options: If you actually have time, there are two extra credit options: 1) (up to 10 pts) – right now the computer’s “intelligence” is solely choosing randomly among the potential squares that flip the most pieces. I was usually able to win simply by picking better pieces. Add some intelligence to the computer so that it picks more wisely 2) (up to 20 pts) – create a better user interface. Right now we’re just using the terminal window. Make it into a real game. /*******************************************************************************************************************/ Sample Output: Size is 10 0123456789 0---------- 1---------- 2---------- 3---------- 4----XO---- 5----OX---- 6---------- 7---------- 8---------- 9---------- How many players? (0,1, or 2) 8 0 Updating best to 3 and 5 Placing piece at 5 and 3 changing 5 and 4 to X 0123456789 0---------- 1---------- 2---------- 3---------- 4----XO---- 5---XXX---- 6---------- 7---------- 8---------- 9---------- Updating best to 4 and 3 Placing piece at 4 and 3 changing 4 and 4 to O 0123456789 0---------- 1---------- 2---------- 3---------- 4---OOO---- 5---XXX---- 6---------- 7---------- 8---------- 9---------- Updating best to 3 and 2 Updating best to 3 and 3 Placing piece at 3 and 3 changing 4 and 4 to X changing 4 and 3 to X 0123456789 0---------- 1---------- 2---------- 3---X------ 4---XXO---- 5---XXX---- 6---------- 7---------- 8---------- 9---------- Updating best to 4 and 2 Placing piece at 4 and 2 changing 4 and 3 to O changing 4 and 4 to O 0123456789 0---------- 1---------- 2---------- 3---X------ 4--OOOO---- 5---XXX---- 6---------- 7---------- 8---------- 9---------- 9 Updating best to 3 and 1 Updating best to 3 and 5 Placing piece at 3 and 5 changing 4 and 5 to X changing 4 and 4 to X 0123456789 0---------- 1---------- 2---------- 3---X-X---- 4--OOXX---- 5---XXX---- 6---------- 7---------- 8---------- 9---------- Updating best to 2 and 3 Updating best to 4 and 6 Placing piece at 4 and 6 changing 4 and 5 to O changing 4 and 4 to O 0123456789 0---------- 1---------- 2---------- 3---X-X---- 4--OOOOO--- 5---XXX---- 6---------- 7---------- 8---------- 9---------- Updating best to 3 and 1 Placing piece at 5 and 1 changing 4 and 2 to X 0123456789 0---------- 1---------- 2---------- 3---X-X---- 4--XOOOO--- 5-X-XXX---- 6---------- 7---------- 8---------- 9---------- Updating best to 2 and 2 Updating best to 6 and 3 Placing piece at 6 and 4 changing 5 and 5 to O changing 5 and 4 to O 0123456789 0---------- 1---------- 2---------- 3---X-X---- 4--XOOOO--- 5-X-XOO---- 6----O----- 7---------- 10 8---------- 9---------- Updating best to 4 and 7 Placing piece at 4 and 7 changing 4 and 6 to X changing 4 and 5 to X changing 4 and 4 to X changing 4 and 3 to X 0123456789 0---------- 1---------- 2---------- 3---X-X---- 4--XXXXXX-- 5-X-XOO---- 6----O----- 7---------- 8---------- 9---------- Updating best to 2 and 2 Placing piece at 2 and 2 changing 3 and 3 to O changing 4 and 4 to O 0123456789 0---------- 1---------- 2--O------- 3---O-X---- 4--XXOXXX-- 5-X-XOO---- 6----O----- 7---------- 8---------- 9---------- Updating best to 2 and 3 Updating best to 5 and 6 Placing piece at 7 and 3 changing 6 and 4 to X changing 5 and 5 to X 0123456789 0---------- 1---------- 2--O------- 3---O-X---- 4--XXOXXX-- 5-X-XOX---- 6----X----- 7---X------ 8---------- 9---------- Updating best to 2 and 6 Updating best to 4 and 1 Updating best to 4 and 8 Placing piece at 4 and 8 changing 4 and 7 to O changing 4 and 6 to O changing 4 and 5 to O 0123456789 0---------- 1---------- 11 2--O------- 3---O-X---- 4--XXOOOOO- 5-X-XOX---- 6----X----- 7---X------ 8---------- 9---------- Updating best to 1 and 1 Updating best to 4 and 9 Placing piece at 4 and 9 changing 4 and 8 to X changing 4 and 7 to X changing 4 and 6 to X changing 4 and 5 to X changing 4 and 4 to X 0123456789 0---------- 1---------- 2--O------- 3---O-X---- 4--XXXXXXXX 5-X-XOX---- 6----X----- 7---X------ 8---------- 9---------- Updating best to 3 and 2 Updating best to 6 and 0 Placing piece at 6 and 6 changing 5 and 5 to O changing 4 and 4 to O 0123456789 0---------- 1---------- 2--O------- 3---O-X---- 4--XXOXXXXX 5-X-XOO---- 6----X-O--- 7---X------ 8---------- 9---------- Updating best to 2 and 3 Updating best to 3 and 4 Placing piece at 3 and 4 changing 4 and 4 to X changing 5 and 4 to X 0123456789 0---------- 1---------- 2--O------- 3---OXX---- 4--XXXXXXXX 5-X-XXO---- 6----X-O--- 7---X------ 8---------- 9---------- Updating best to 2 and 5 12 Placing piece at 8 and 2 changing 7 and 3 to O changing 6 and 4 to O 0123456789 0---------- 1---------- 2--O------- 3---OXX---- 4--XXXXXXXX 5-X-XXO---- 6----O-O--- 7---O------ 8--O------- 9---------- Updating best to 1 and 1 Updating best to 9 and 1 Placing piece at 9 and 1 changing 8 and 2 to X changing 7 and 3 to X changing 6 and 4 to X changing 5 and 5 to X 0123456789 0---------- 1---------- 2--O------- 3---OXX---- 4--XXXXXXXX 5-X-XXX---- 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 3 and 6 Placing piece at 3 and 6 changing 3 and 5 to O changing 3 and 4 to O 0123456789 0---------- 1---------- 2--O------- 3---OOOO--- 4--XXXXXXXX 5-X-XXX---- 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 1 Updating best to 2 and 4 Placing piece at 2 and 4 changing 3 and 5 to X changing 3 and 4 to X changing 3 and 3 to X 0123456789 0---------- 1---------- 2--O-X----- 3---XXXO--- 4--XXXXXXXX 5-X-XXX---- 13 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 3 and 2 Placing piece at 3 and 2 changing 3 and 3 to O changing 3 and 4 to O changing 3 and 5 to O 0123456789 0---------- 1---------- 2--O-X----- 3--OOOOO--- 4--XXXXXXXX 5-X-XXX---- 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 1 Updating best to 2 and 5 Placing piece at 2 and 5 changing 3 and 6 to X changing 3 and 5 to X changing 3 and 4 to X 0123456789 0---------- 1---------- 2--O-XX---- 3--OOXXX--- 4--XXXXXXXX 5-X-XXX---- 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 5 Updating best to 3 and 7 Placing piece at 3 and 7 changing 3 and 6 to O changing 3 and 5 to O changing 3 and 4 to O 0123456789 0---------- 1---------- 2--O-XX---- 3--OOOOOO-- 4--XXXXXXXX 5-X-XXX---- 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 1 Updating best to 2 and 6 Placing piece at 2 and 6 changing 3 and 7 to X changing 3 and 6 to X changing 3 and 5 to X 14 0123456789 0---------- 1---------- 2--O-XXX--- 3--OOOXXX-- 4--XXXXXXXX 5-X-XXX---- 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 4 Updating best to 3 and 8 Placing piece at 3 and 8 changing 3 and 7 to O changing 3 and 6 to O changing 3 and 5 to O 0123456789 0---------- 1---------- 2--O-XXX--- 3--OOOOOOO- 4--XXXXXXXX 5-X-XXX---- 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 1 Updating best to 2 and 7 Placing piece at 2 and 7 changing 3 and 8 to X changing 3 and 7 to X changing 3 and 6 to X 0123456789 0---------- 1---------- 2--O-XXXX-- 3--OOOOXXX- 4--XXXXXXXX 5-X-XXX---- 6----X-O--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 3 Updating best to 1 and 5 Updating best to 3 and 9 Updating best to 6 and 5 Placing piece at 6 and 5 changing 5 and 4 to O changing 4 and 3 to O changing 5 and 5 to O changing 4 and 5 to O 0123456789 0---------- 1---------- 2--O-XXXX-- 3--OOOOXXX- 4--XOXOXXXX 15 5-X-XOO---- 6----XOO--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 1 Updating best to 3 and 1 Placing piece at 3 and 1 changing 3 and 2 to X changing 3 and 3 to X changing 3 and 4 to X changing 3 and 5 to X 0123456789 0---------- 1---------- 2--O-XXXX-- 3-XXXXXXXX- 4--XOXOXXXX 5-X-XOO---- 6----XOO--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 4 Placing piece at 5 and 2 changing 5 and 3 to O changing 4 and 2 to O changing 3 and 2 to O 0123456789 0---------- 1---------- 2--O-XXXX-- 3-XOXXXXXX- 4--OOXOXXXX 5-XOOOO---- 6----XOO--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 1 Updating best to 4 and 1 Updating best to 5 and 6 Placing piece at 5 and 6 changing 4 and 5 to X changing 5 and 5 to X changing 5 and 4 to X changing 5 and 3 to X changing 5 and 2 to X 0123456789 0---------- 1---------- 2--O-XXXX-- 3-XOXXXXXX- 4--OOXXXXXX 5-XXXXXX--- 6----XOO--- 7---X------ 8--X------- 9-X-------- Updating best to 1 and 5 16 Placing piece at 1 and 5 changing 2 and 5 to O changing 3 and 5 to O changing 4 and 5 to O changing 5 and 5 to O changing 2 and 4 to O changing 3 and 3 to O 0123456789 0---------- 1-----O---- 2--O-OOXX-- 3-XOOXOXXX- 4--OOXOXXXX 5-XXXXOX--- 6----XOO--- 7---X------ 8--X------- 9-X-------- Updating best to 0 and 4 Updating best to 0 and 6 Placing piece at 0 and 6 changing 1 and 5 to X changing 2 and 4 to X changing 3 and 3 to X changing 4 and 2 to X 0123456789 0------X--- 1-----X---- 2--O-XOXX-- 3-XOXXOXXX- 4--XOXOXXXX 5-XXXXOX--- 6----XOO--- 7---X------ 8--X------- 9-X-------- Updating best to 0 and 5 Updating best to 1 and 6 Placing piece at 1 and 6 changing 2 and 6 to O changing 3 and 6 to O changing 4 and 6 to O changing 5 and 6 to O 0123456789 0------X--- 1-----XO--- 2--O-XOOX-- 3-XOXXOOXX- 4--XOXOOXXX 5-XXXXOO--- 6----XOO--- 7---X------ 8--X------- 9-X-------- Updating best to 0 and 5 Updating best to 0 and 7 Updating best to 1 and 7 Updating best to 5 and 7 Updating best to 7 and 5 Updating best to 7 and 6 17 Placing piece at 7 and 6 changing 6 and 5 to X changing 6 and 6 to X changing 5 and 6 to X changing 4 and 6 to X changing 3 and 6 to X changing 2 and 6 to X changing 1 and 6 to X 0123456789 0------X--- 1-----XX--- 2--O-XOXX-- 3-XOXXOXXX- 4--XOXOXXXX 5-XXXXOX--- 6----XXX--- 7---X--X--- 8--X------- 9-X-------- Updating best to 0 and 5 Updating best to 1 and 8 Updating best to 2 and 3 Updating best to 2 and 8 Placing piece at 2 and 8 changing 3 and 7 to O changing 4 and 6 to O changing 2 and 7 to O changing 2 and 6 to O 0123456789 0------X--- 1-----XX--- 2--O-XOOOO- 3-XOXXOXOX- 4--XOXOOXXX 5-XXXXOX--- 6----XXX--- 7---X--X--- 8--X------- 9-X-------- Updating best to 1 and 1 Updating best to 1 and 2 Updating best to 1 and 7 Placing piece at 1 and 7 changing 2 and 7 to X changing 3 and 7 to X changing 2 and 6 to X changing 3 and 5 to X 0123456789 0------X--- 1-----XXX-- 2--O-XOXXO- 3-XOXXXXXX- 4--XOXOOXXX 5-XXXXOX--- 6----XXX--- 7---X--X--- 8--X------- 9-X-------- Updating best to 0 and 5 Updating best to 1 and 3 18 Updating best to 2 and 3 Updating best to 3 and 9 Placing piece at 3 and 9 changing 3 and 8 to O changing 3 and 7 to O changing 3 and 6 to O changing 3 and 5 to O changing 3 and 4 to O changing 3 and 3 to O 0123456789 0------X--- 1-----XXX-- 2--O-XOXXO- 3-XOOOOOOOO 4--XOXOOXXX 5-XXXXOX--- 6----XXX--- 7---X--X--- 8--X------- 9-X-------- Updating best to 1 and 1 Updating best to 1 and 9 Placing piece at 1 and 9 changing 2 and 8 to X changing 3 and 7 to X changing 4 and 6 to X changing 5 and 5 to X 0123456789 0------X--- 1-----XXX-X 2--O-XOXXX- 3-XOOOOOXOO 4--XOXOXXXX 5-XXXXXX--- 6----XXX--- 7---X--X--- 8--X------- 9-X-------- Updating best to 0 and 5 Updating best to 6 and 2 Updating best to 7 and 4 Placing piece at 7 and 4 changing 6 and 5 to O changing 5 and 6 to O changing 4 and 7 to O changing 6 and 4 to O changing 5 and 4 to O changing 4 and 4 to O 0123456789 0------X--- 1-----XXX-X 2--O-XOXXX- 3-XOOOOOXOO 4--XOOOXOXX 5-XXXOXO--- 6----OOX--- 7---XO-X--- 8--X------- 9-X-------- Updating best to 1 and 1 19 Updating best to 2 and 1 Updating best to 6 and 3 Placing piece at 8 and 4 changing 7 and 4 to X changing 6 and 4 to X changing 5 and 4 to X changing 4 and 4 to X changing 3 and 4 to X 0123456789 0------X--- 1-----XXX-X 2--O-XOXXX- 3-XOOXOOXOO 4--XOXOXOXX 5-XXXXXO--- 6----XOX--- 7---XX-X--- 8--X-X----- 9-X-------- Updating best to 0 and 5 Updating best to 0 and 7 Updating best to 5 and 0 Placing piece at 5 and 0 changing 5 and 1 to O changing 5 and 2 to O changing 5 and 3 to O changing 5 and 4 to O changing 5 and 5 to O 0123456789 0------X--- 1-----XXX-X 2--O-XOXXX- 3-XOOXOOXOO 4--XOXOXOXX 5OOOOOOO--- 6----XOX--- 7---XX-X--- 8--X-X----- 9-X-------- Updating best to 1 and 1 Updating best to 2 and 1 Updating best to 2 and 9 Placing piece at 7 and 5 changing 6 and 5 to X changing 5 and 5 to X changing 4 and 5 to X changing 3 and 5 to X changing 2 and 5 to X 0123456789 0------X--- 1-----XXX-X 2--O-XXXXX- 3-XOOXXOXOO 4--XOXXXOXX 5OOOOOXO--- 6----XXX--- 7---XXXX--- 8--X-X----- 9-X-------- Updating best to 0 and 5 20 Updating best to 0 and 7 Placing piece at 0 and 7 changing 1 and 7 to O changing 2 and 7 to O changing 3 and 7 to O changing 1 and 6 to O changing 2 and 5 to O changing 3 and 4 to O 0123456789 0------XO-- 1-----XOO-X 2--O-XOXOX- 3-XOOOXOOOO 4--XOXXXOXX 5OOOOOXO--- 6----XXX--- 7---XXXX--- 8--X-X----- 9-X-------- Updating best to 0 and 5 Updating best to 1 and 8 Placing piece at 2 and 9 changing 3 and 9 to X changing 3 and 8 to X changing 4 and 7 to X changing 5 and 6 to X 0123456789 0------XO-- 1-----XOO-X 2--O-XOXOXX 3-XOOOXOOXX 4--XOXXXXXX 5OOOOOXX--- 6----XXX--- 7---XXXX--- 8--X-X----- 9-X-------- Updating best to 0 and 4 Updating best to 5 and 7 Updating best to 8 and 5 Updating best to 8 and 6 Placing piece at 8 and 6 changing 7 and 5 to O changing 6 and 4 to O changing 7 and 6 to O changing 6 and 6 to O changing 5 and 6 to O changing 4 and 6 to O 0123456789 0------XO-- 1-----XOO-X 2--O-XOXOXX 3-XOOOXOOXX 4--XOXXOXXX 5OOOOOXO--- 6----OXO--- 7---XXOO--- 8--X-X-O--- 9-X-------- Updating best to 0 and 5 21 Updating best to 1 and 8 Updating best to 9 and 6 Placing piece at 9 and 6 changing 8 and 6 to X changing 7 and 6 to X changing 6 and 6 to X changing 5 and 6 to X changing 4 and 6 to X changing 3 and 6 to X 0123456789 0------XO-- 1-----XOO-X 2--O-XOXOXX 3-XOOOXXOXX 4--XOXXXXXX 5OOOOOXX--- 6----OXX--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 5 and 7 Placing piece at 5 and 7 changing 6 and 6 to O changing 4 and 7 to O changing 5 and 6 to O changing 5 and 5 to O 0123456789 0------XO-- 1-----XOO-X 2--O-XOXOXX 3-XOOOXXOXX 4--XOXXXOXX 5OOOOOOOO-- 6----OXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 5 Updating best to 1 and 8 Placing piece at 2 and 1 changing 3 and 2 to X changing 4 and 3 to X changing 5 and 4 to X 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3-XXOOXXOXX 4--XXXXXOXX 5OOOOXOOO-- 6----OXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 1 and 3 Updating best to 4 and 1 Placing piece at 4 and 1 changing 4 and 2 to O 22 changing 4 and 3 to O changing 4 and 4 to O changing 4 and 5 to O changing 4 and 6 to O 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3-XXOOXXOXX 4-OOOOOOOXX 5OOOOXOOO-- 6----OXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 5 Updating best to 1 and 8 Updating best to 4 and 0 Placing piece at 4 and 0 changing 4 and 1 to X changing 4 and 2 to X changing 4 and 3 to X changing 4 and 4 to X changing 4 and 5 to X changing 4 and 6 to X changing 4 and 7 to X 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3-XXOOXXOXX 4XXXXXXXXXX 5OOOOXOOO-- 6----OXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 1 and 1 Updating best to 3 and 0 Placing piece at 3 and 0 changing 4 and 1 to O changing 4 and 0 to O changing 3 and 1 to O changing 3 and 2 to O 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3OOOOOXXOXX 4OOXXXXXXXX 5OOOOXOOO-- 6----OXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 5 Updating best to 1 and 8 Updating best to 6 and 1 Placing piece at 6 and 1 23 changing 5 and 2 to X changing 5 and 1 to X changing 4 and 1 to X changing 3 and 1 to X 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3OXOOOXXOXX 4OXXXXXXXXX 5OXXOXOOO-- 6-X--OXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 1 and 3 Updating best to 6 and 3 Placing piece at 6 and 3 changing 5 and 4 to O changing 4 and 5 to O changing 3 and 6 to O changing 5 and 2 to O changing 4 and 1 to O 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3OXOOOXOOXX 4OOXXXOXXXX 5OXOOOOOO-- 6-X-OOXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 5 Updating best to 5 and 8 Placing piece at 5 and 8 changing 5 and 7 to X changing 5 and 6 to X changing 5 and 5 to X changing 5 and 4 to X changing 5 and 3 to X changing 5 and 2 to X 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3OXOOOXOOXX 4OOXXXOXXXX 5OXXXXXXXX- 6-X-OOXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 2 and 0 Updating best to 5 and 9 Placing piece at 5 and 9 changing 4 and 8 to O 24 changing 5 and 8 to O changing 5 and 7 to O changing 5 and 6 to O changing 5 and 5 to O changing 5 and 4 to O changing 5 and 3 to O changing 5 and 2 to O changing 5 and 1 to O 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3OXOOOXOOXX 4OOXXXOXXOX 5OOOOOOOOOO 6-X-OOXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 5 Updating best to 6 and 2 Placing piece at 6 and 2 changing 6 and 3 to X changing 6 and 4 to X changing 5 and 3 to X changing 5 and 2 to X 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3OXOOOXOOXX 4OOXXXOXXOX 5OOXXOOOOOO 6-XXXXXO--- 7---XXOX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 0 and 9 Updating best to 2 and 0 Updating best to 7 and 1 Updating best to 7 and 2 Placing piece at 7 and 2 changing 7 and 3 to O changing 7 and 4 to O changing 6 and 3 to O changing 6 and 1 to O changing 6 and 2 to O changing 5 and 2 to O changing 4 and 2 to O 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3OXOOOXOOXX 4OOOXXOXXOX 5OOOXOOOOOO 6-OOOXXO--- 7--OOOOX--- 8--X-X-X--- 25 9-X----X--- Updating best to 0 and 5 Updating best to 1 and 2 Updating best to 7 and 1 Placing piece at 7 and 1 changing 7 and 2 to X changing 7 and 3 to X changing 7 and 4 to X changing 7 and 5 to X changing 6 and 2 to X changing 6 and 1 to X changing 5 and 1 to X changing 4 and 1 to X 0123456789 0------XO-- 1-----XOO-X 2-XO-XOXOXX 3OXOOOXOOXX 4OXOXXOXXOX 5OXOXOOOOOO 6-XXOXXO--- 7-XXXXXX--- 8--X-X-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 0 and 9 Updating best to 8 and 0 Placing piece at 8 and 0 changing 7 and 1 to O changing 6 and 2 to O changing 5 and 3 to O changing 4 and 4 to O changing 3 and 5 to O changing 2 and 6 to O 0123456789 0------XO-- 1-----XOO-X 2-XO-XOOOXX 3OXOOOOOOXX 4OXOXOOXXOX 5OXOOOOOOOO 6-XOOXXO--- 7-OXXXXX--- 8O-X-X-X--- 9-X----X--- Updating best to 0 and 5 Updating best to 1 and 2 Updating best to 1 and 8 Placing piece at 1 and 8 changing 2 and 7 to X changing 3 and 6 to X changing 4 and 5 to X changing 5 and 4 to X changing 6 and 3 to X changing 1 and 7 to X changing 1 and 6 to X 0123456789 0------XO-- 1-----XXXXX 2-XO-XOOXXX 26 3OXOOOOXOXX 4OXOXOXXXOX 5OXOOXOOOOO 6-XOXXXO--- 7-OXXXXX--- 8O-X-X-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 0 and 5 Updating best to 0 and 8 Updating best to 1 and 1 Updating best to 8 and 3 Placing piece at 8 and 3 changing 7 and 4 to O changing 6 and 5 to O changing 7 and 2 to O changing 6 and 1 to O changing 7 and 3 to O changing 6 and 3 to O 0123456789 0------XO-- 1-----XXXXX 2-XO-XOOXXX 3OXOOOOXOXX 4OXOXOXXXOX 5OXOOXOOOOO 6-OOOXOO--- 7-OOOOXX--- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 8 Updating best to 1 and 2 Placing piece at 7 and 0 changing 7 and 1 to X changing 7 and 2 to X changing 7 and 3 to X changing 7 and 4 to X changing 6 and 1 to X changing 5 and 2 to X 0123456789 0------XO-- 1-----XXXXX 2-XO-XOOXXX 3OXOOOOXOXX 4OXOXOXXXOX 5OXXOXOOOOO 6-XOOXOO--- 7XXXXXXX--- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 0 and 5 Updating best to 0 and 8 Updating best to 0 and 9 Placing piece at 0 and 9 changing 1 and 9 to O changing 2 and 9 to O changing 3 and 9 to O changing 4 and 9 to O changing 1 and 8 to O 27 changing 2 and 7 to O changing 3 and 6 to O changing 4 and 5 to O changing 5 and 4 to O 0123456789 0------XO-O 1-----XXXOO 2-XO-XOOOXO 3OXOOOOOOXO 4OXOXOOXXOO 5OXXOOOOOOO 6-XOOXOO--- 7XXXXXXX--- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 8 Updating best to 1 and 2 Placing piece at 1 and 2 changing 2 and 2 to X changing 3 and 2 to X changing 4 and 2 to X 0123456789 0------XO-O 1--X--XXXOO 2-XX-XOOOXO 3OXXOOOOOXO 4OXXXOOXXOO 5OXXOOOOOOO 6-XOOXOO--- 7XXXXXXX--- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 2 Placing piece at 0 and 2 changing 1 and 2 to O changing 2 and 2 to O changing 3 and 2 to O changing 4 and 2 to O changing 5 and 2 to O 0123456789 0--O---XO-O 1--O--XXXOO 2-XO-XOOOXO 3OXOOOOOOXO 4OXOXOOXXOO 5OXOOOOOOOO 6-XOOXOO--- 7XXXXXXX--- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 3 Updating best to 0 and 8 Updating best to 2 and 3 Placing piece at 6 and 8 changing 5 and 7 to X changing 5 and 8 to X changing 4 and 8 to X 0123456789 0--O---XO-O 1--O--XXXOO 28 2-XO-XOOOXO 3OXOOOOOOXO 4OXOXOOXXXO 5OXOOOOOXXO 6-XOOXOO-X- 7XXXXXXX--- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 0 and 5 Updating best to 1 and 4 Updating best to 7 and 8 Placing piece at 7 and 8 changing 6 and 8 to O changing 5 and 8 to O changing 4 and 8 to O changing 3 and 8 to O changing 2 and 8 to O 0123456789 0--O---XO-O 1--O--XXXOO 2-XO-XOOOOO 3OXOOOOOOOO 4OXOXOOXXOO 5OXOOOOOXOO 6-XOOXOO-O- 7XXXXXXX-O- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 3 Updating best to 1 and 4 Updating best to 2 and 3 Placing piece at 2 and 3 changing 3 and 3 to X changing 3 and 2 to X changing 2 and 2 to X 0123456789 0--O---XO-O 1--O--XXXOO 2-XXXXOOOOO 3OXXXOOOOOO 4OXOXOOXXOO 5OXOOOOOXOO 6-XOOXOO-O- 7XXXXXXX-O- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 4 Updating best to 0 and 5 Updating best to 1 and 3 Updating best to 1 and 4 Placing piece at 1 and 4 changing 2 and 4 to O changing 1 and 5 to O changing 1 and 6 to O changing 1 and 7 to O changing 2 and 3 to O changing 3 and 2 to O changing 4 and 1 to O 0123456789 29 0--O---XO-O 1--O-OOOOOO 2-XXOOOOOOO 3OXOXOOOOOO 4OOOXOOXXOO 5OXOOOOOXOO 6-XOOXOO-O- 7XXXXXXX-O- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 3 Updating best to 0 and 4 Updating best to 0 and 5 Updating best to 0 and 8 Placing piece at 0 and 8 changing 1 and 7 to X changing 2 and 6 to X changing 3 and 5 to X changing 4 and 4 to X changing 5 and 3 to X changing 6 and 2 to X changing 0 and 7 to X 0123456789 0--O---XXXO 1--O-OOOXOO 2-XXOOOXOOO 3OXOXOXOOOO 4OOOXXOXXOO 5OXOXOOOXOO 6-XXOXOO-O- 7XXXXXXX-O- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 5 Updating best to 1 and 1 Placing piece at 1 and 1 changing 2 and 2 to O changing 3 and 3 to O changing 4 and 4 to O changing 2 and 1 to O changing 3 and 1 to O 0123456789 0--O---XXXO 1-OO-OOOXOO 2-OOOOOXOOO 3OOOOOXOOOO 4OOOXOOXXOO 5OXOXOOOXOO 6-XXOXOO-O- 7XXXXXXX-O- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 1 Updating best to 0 and 4 Updating best to 2 and 0 Placing piece at 2 and 0 changing 3 and 1 to X changing 4 and 2 to X changing 2 and 1 to X changing 2 and 2 to X 30 changing 2 and 3 to X changing 2 and 4 to X changing 2 and 5 to X 0123456789 0--O---XXXO 1-OO-OOOXOO 2XXXXXXXOOO 3OXOOOXOOOO 4OOXXOOXXOO 5OXOXOOOXOO 6-XXOXOO-O- 7XXXXXXX-O- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 5 Updating best to 1 and 3 Placing piece at 1 and 3 changing 2 and 4 to O changing 3 and 5 to O changing 4 and 6 to O changing 5 and 7 to O changing 2 and 3 to O changing 2 and 2 to O changing 3 and 1 to O 0123456789 0--O---XXXO 1-OOOOOOXOO 2XXOOOXXOOO 3OOOOOOOOOO 4OOXXOOOXOO 5OXOXOOOOOO 6-XXOXOO-O- 7XXXXXXX-O- 8O-XOX-X--- 9-X----X--- Updating best to 0 and 1 Updating best to 0 and 3 Updating best to 0 and 4 Updating best to 8 and 8 Placing piece at 8 and 8 changing 7 and 8 to X changing 6 and 8 to X changing 5 and 8 to X changing 4 and 8 to X changing 3 and 8 to X changing 2 and 8 to X changing 1 and 8 to X 0123456789 0--O---XXXO 1-OOOOOOXXO 2XXOOOXXOXO 3OOOOOOOOXO 4OOXXOOOXXO 5OXOXOOOOXO 6-XXOXOO-X- 7XXXXXXX-X- 8O-XOX-X-X- 9-X----X--- Updating best to 0 and 5 Updating best to 6 and 0 31 Placing piece at 9 and 7 changing 8 and 6 to O changing 7 and 5 to O changing 6 and 4 to O changing 5 and 3 to O changing 4 and 2 to O 0123456789 0--O---XXXO 1-OOOOOOXXO 2XXOOOXXOXO 3OOOOOOOOXO 4OOOXOOOXXO 5OXOOOOOOXO 6-XXOOOO-X- 7XXXXXOX-X- 8O-XOX-O-X- 9-X----XO-- Updating best to 0 and 1 Updating best to 0 and 3 Updating best to 0 and 4 Placing piece at 0 and 4 changing 1 and 5 to X changing 1 and 4 to X changing 2 and 4 to X changing 3 and 4 to X changing 4 and 4 to X changing 5 and 4 to X changing 6 and 4 to X 0123456789 0--O-X-XXXO 1-OOOXXOXXO 2XXOOXXXOXO 3OOOOXOOOXO 4OOOXXOOXXO 5OXOOXOOOXO 6-XXOXOO-X- 7XXXXXOX-X- 8O-XOX-O-X- 9-X----XO-- Updating best to 0 and 3 Updating best to 0 and 5 Placing piece at 0 and 5 changing 1 and 5 to O changing 2 and 5 to O changing 0 and 6 to O changing 0 and 7 to O changing 0 and 8 to O changing 1 and 4 to O 0123456789 0--O-XOOOOO 1-OOOOOOXXO 2XXOOXOXOXO 3OOOOXOOOXO 4OOOXXOOXXO 5OXOOXOOOXO 6-XXOXOO-X- 7XXXXXOX-X- 8O-XOX-O-X- 9-X----XO-- Updating best to 0 and 0 32 Updating best to 0 and 3 Placing piece at 0 and 3 changing 1 and 4 to X changing 2 and 5 to X changing 3 and 6 to X changing 1 and 3 to X changing 2 and 3 to X changing 3 and 3 to X changing 1 and 2 to X 0123456789 0--OXXOOOOO 1-OXXXOOXXO 2XXOXXXXOXO 3OOOXXOXOXO 4OOOXXOOXXO 5OXOOXOOOXO 6-XXOXOO-X- 7XXXXXOX-X- 8O-XOX-O-X- 9-X----XO-- Updating best to 0 and 1 Updating best to 6 and 0 Updating best to 8 and 1 Updating best to 9 and 8 Placing piece at 9 and 8 changing 8 and 8 to O changing 7 and 8 to O changing 6 and 8 to O changing 5 and 8 to O changing 4 and 8 to O changing 3 and 8 to O changing 2 and 8 to O changing 1 and 8 to O 0123456789 0--OXXOOOOO 1-OXXXOOXOO 2XXOXXXXOOO 3OOOXXOXOOO 4OOOXXOOXOO 5OXOOXOOOOO 6-XXOXOO-O- 7XXXXXOX-O- 8O-XOX-O-O- 9-X----XOO- Updating best to 0 and 0 Updating best to 6 and 0 Updating best to 6 and 7 Placing piece at 8 and 5 changing 7 and 5 to X changing 6 and 5 to X changing 5 and 5 to X changing 4 and 5 to X changing 3 and 5 to X 0123456789 0--OXXOOOOO 1-OXXXOOXOO 2XXOXXXXOOO 3OOOXXXXOOO 4OOOXXXOXOO 5OXOOXXOOOO 33 6-XXOXXO-O- 7XXXXXXX-O- 8O-XOXXO-O- 9-X----XOO- Updating best to 0 and 1 Updating best to 8 and 1 Updating best to 9 and 5 Placing piece at 9 and 5 changing 9 and 6 to O changing 8 and 4 to O changing 7 and 3 to O changing 6 and 2 to O changing 5 and 1 to O changing 8 and 5 to O changing 7 and 5 to O changing 6 and 5 to O changing 5 and 5 to O changing 4 and 5 to O changing 3 and 5 to O changing 2 and 5 to O 0123456789 0--OXXOOOOO 1-OXXXOOXOO 2XXOXXOXOOO 3OOOXXOXOOO 4OOOXXOOXOO 5OOOOXOOOOO 6-XOOXOO-O- 7XXXOXOX-O- 8O-XOOOO-O- 9-X---OOOO- Updating best to 0 and 0 Updating best to 6 and 0 Placing piece at 6 and 0 changing 5 and 1 to X changing 4 and 2 to X changing 5 and 0 to X changing 4 and 0 to X changing 3 and 0 to X 0123456789 0--OXXOOOOO 1-OXXXOOXOO 2XXOXXOXOOO 3XOOXXOXOOO 4XOXXXOOXOO 5XXOOXOOOOO 6XXOOXOO-O- 7XXXOXOX-O- 8O-XOOOO-O- 9-X---OOOO- Updating best to 0 and 1 Updating best to 1 and 0 Placing piece at 1 and 0 changing 2 and 1 to O changing 2 and 0 to O changing 3 and 0 to O changing 4 and 0 to O changing 5 and 0 to O changing 6 and 0 to O changing 7 and 0 to O 34 0123456789 0--OXXOOOOO 1OOXXXOOXOO 2OOOXXOXOOO 3OOOXXOXOOO 4OOXXXOOXOO 5OXOOXOOOOO 6OXOOXOO-O- 7OXXOXOX-O- 8O-XOOOO-O- 9-X---OOOO- Updating best to 0 and 0 Updating best to 0 and 1 Placing piece at 0 and 1 changing 1 and 1 to X changing 2 and 1 to X changing 3 and 1 to X changing 4 and 1 to X changing 0 and 2 to X 0123456789 0-XXXXOOOOO 1OXXXXOOXOO 2OXOXXOXOOO 3OXOXXOXOOO 4OXXXXOOXOO 5OXOOXOOOOO 6OXOOXOO-O- 7OXXOXOX-O- 8O-XOOOO-O- 9-X---OOOO- Updating best to 0 and 0 Placing piece at 0 and 0 changing 1 and 1 to O changing 0 and 1 to O changing 0 and 2 to O changing 0 and 3 to O changing 0 and 4 to O 0123456789 0OOOOOOOOOO 1OOXXXOOXOO 2OXOXXOXOOO 3OXOXXOXOOO 4OXXXXOOXOO 5OXOOXOOOOO 6OXOOXOO-O- 7OXXOXOX-O- 8O-XOOOO-O- 9-X---OOOO- Updating best to 6 and 7 Placing piece at 6 and 7 changing 5 and 6 to X changing 4 and 5 to X changing 5 and 7 to X changing 6 and 6 to X changing 6 and 5 to X 0123456789 0OOOOOOOOOO 1OOXXXOOXOO 2OXOXXOXOOO 3OXOXXOXOOO 35 4OXXXXXOXOO 5OXOOXOXXOO 6OXOOXXXXO- 7OXXOXOX-O- 8O-XOOOO-O- 9-X---OOOO- Updating best to 7 and 7 Updating best to 8 and 1 Placing piece at 8 and 1 changing 8 and 2 to O changing 7 and 2 to O changing 7 and 1 to O changing 6 and 1 to O changing 5 and 1 to O changing 4 and 1 to O changing 3 and 1 to O changing 2 and 1 to O 0123456789 0OOOOOOOOOO 1OOXXXOOXOO 2OOOXXOXOOO 3OOOXXOXOOO 4OOXXXXOXOO 5OOOOXOXXOO 6OOOOXXXXO- 7OOOOXOX-O- 8OOOOOOO-O- 9-X---OOOO- Updating best to 6 and 9 Updating best to 9 and 0 Updating best to 9 and 2 Updating best to 9 and 3 Placing piece at 9 and 3 changing 8 and 4 to X changing 7 and 5 to X changing 8 and 3 to X changing 7 and 3 to X changing 6 and 3 to X changing 5 and 3 to X 0123456789 0OOOOOOOOOO 1OOXXXOOXOO 2OOOXXOXOOO 3OOOXXOXOOO 4OOXXXXOXOO 5OOOXXOXXOO 6OOOXXXXXO- 7OOOXXXX-O- 8OOOXXOO-O- 9-X-X-OOOO- Updating best to 7 and 7 Updating best to 9 and 4 Placing piece at 9 and 4 changing 8 and 3 to O changing 8 and 4 to O changing 7 and 4 to O changing 6 and 4 to O changing 5 and 4 to O changing 4 and 4 to O changing 3 and 4 to O 36 changing 2 and 4 to O changing 1 and 4 to O 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXOXOXOO 5OOOXOOXXOO 6OOOXOXXXO- 7OOOXOXX-O- 8OOOOOOO-O- 9-X-XOOOOO- Updating best to 6 and 9 Updating best to 9 and 2 Placing piece at 9 and 2 changing 8 and 3 to X changing 7 and 4 to X changing 8 and 2 to X changing 7 and 2 to X changing 6 and 2 to X changing 5 and 2 to X 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXOXOXOO 5OOXXOOXXOO 6OOXXOXXXO- 7OOXXXXX-O- 8OOXXOOO-O- 9-XXXOOOOO- Updating best to 7 and 7 Placing piece at 7 and 7 changing 6 and 6 to O changing 6 and 7 to O changing 5 and 7 to O changing 4 and 7 to O changing 7 and 6 to O changing 7 and 5 to O changing 7 and 4 to O changing 7 and 3 to O changing 7 and 2 to O 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXOXOOOO 5OOXXOOXOOO 6OOXXOXOOO- 7OOOOOOOOO- 8OOXXOOO-O- 9-XXXOOOOO- Updating best to 6 and 9 Updating best to 8 and 7 Placing piece at 9 and 9 changing 8 and 8 to X changing 7 and 7 to X 37 changing 6 and 6 to X changing 5 and 5 to X changing 4 and 4 to X changing 9 and 8 to X changing 9 and 7 to X changing 9 and 6 to X changing 9 and 5 to X changing 9 and 4 to X 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXXXOOOO 5OOXXOXXOOO 6OOXXOXXOO- 7OOOOOOOXO- 8OOXXOOO-X- 9-XXXXXXXXX Updating best to 8 and 7 Placing piece at 8 and 7 changing 7 and 7 to O 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXXXOOOO 5OOXXOXXOOO 6OOXXOXXOO- 7OOOOOOOOO- 8OOXXOOOOX- 9-XXXXXXXXX Updating best to 6 and 9 Placing piece at 6 and 9 changing 7 and 8 to X changing 8 and 7 to X changing 5 and 8 to X changing 4 and 7 to X changing 6 and 8 to X changing 6 and 7 to X 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXXXOXOO 5OOXXOXXOXO 6OOXXOXXXXX 7OOOOOOOOX- 8OOXXOOOXX- 9-XXXXXXXXX Updating best to 7 and 9 Updating best to 8 and 9 Placing piece at 8 and 9 changing 7 and 8 to O changing 6 and 7 to O changing 5 and 6 to O changing 4 and 5 to O changing 8 and 8 to O 38 changing 8 and 7 to O 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXXOOXOO 5OOXXOXOOXO 6OOXXOXXOXX 7OOOOOOOOO- 8OOXXOOOOOO 9-XXXXXXXXX Updating best to 7 and 9 Placing piece at 9 and 0 changing 8 and 1 to X changing 7 and 2 to X 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXXOOXOO 5OOXXOXOOXO 6OOXXOXXOXX 7OOXOOOOOO- 8OXXXOOOOOO 9XXXXXXXXXX Updating best to 7 and 9 Placing piece at 7 and 9 changing 6 and 8 to O changing 6 and 9 to O 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXXOOXOO 5OOXXOXOOXO 6OOXXOXXOOO 7OOXOOOOOOO 8OXXXOOOOOO 9XXXXXXXXXX Game over 0123456789 0OOOOOOOOOO 1OOXXOOOXOO 2OOOXOOXOOO 3OOOXOOXOOO 4OOXXXOOXOO 5OOXXOXOOXO 6OOXXOXXOOO 7OOXOOOOOOO 8OXXXOOOOOO 9XXXXXXXXXX X WON!!!! Play again? (Y or N) Y STARTING OVER 0123456789 0---------- 39 1---------- 2---------- 3---------- 4----XO---- 5----OX---- 6---------- 7---------- 8---------- 9---------- How many players? (0,1, or 2) 1 X Enter the x coordinate: 3 X Enter the y coordinate: 5 changing 4 and 5 to X 0123456789 0---------- 1---------- 2---------- 3-----X---- 4----XX---- 5----OX---- 6---------- 7---------- 8---------- 9---------- Updating best to 3 and 4 Placing piece at 5 and 6 changing 5 and 5 to O 0123456789 0---------- 1---------- 2---------- 3-----X---- 4----XX---- 5----OOO--- 6---------- 7---------- 8---------- 9---------- X Enter the x coordinate: 6 X Enter the y coordinate: 4 changing 5 and 4 to X 0123456789 0---------- 1---------- 2---------- 3-----X---- 4----XX---- 5----XOO--- 6----X----- 7---------- 8---------- 9---------- Updating best to 2 and 5 Placing piece at 2 and 5 changing 3 and 5 to O changing 4 and 5 to O 0123456789 0---------- 1---------- 40 2-----O---- 3-----O---- 4----XO---- 5----XOO--- 6----X----- 7---------- 8---------- 9---------- X Enter the x coordinate: 4 X Enter the y coordinate: 6 changing 5 and 5 to X changing 4 and 5 to X 0123456789 0---------- 1---------- 2-----O---- 3-----O---- 4----XXX--- 5----XXO--- 6----X----- 7---------- 8---------- 9---------- Updating best to 3 and 4 Updating best to 5 and 3 Placing piece at 5 and 3 changing 5 and 4 to O changing 5 and 5 to O changing 4 and 4 to O 0123456789 0---------- 1---------- 2-----O---- 3-----O---- 4----OXX--- 5---OOOO--- 6----X----- 7---------- 8---------- 9---------- X Enter the x coordinate: 3 X Enter the y coordinate: 4 changing 4 and 4 to X changing 5 and 4 to X 0123456789 0---------- 1---------- 2-----O---- 3----XO---- 4----XXX--- 5---OXOO--- 6----X----- 7---------- 8---------- 9---------- Updating best to 2 and 3 Placing piece at 2 and 3 changing 3 and 4 to O changing 4 and 5 to O 0123456789 41 0---------- 1---------- 2---O-O---- 3----OO---- 4----XOX--- 5---OXOO--- 6----X----- 7---------- 8---------- 9---------- X Enter the x coordinate: 6 X Enter the y coordinate: 6 changing 5 and 5 to X changing 5 and 6 to X 0123456789 0---------- 1---------- 2---O-O---- 3----OO---- 4----XOX--- 5---OXXX--- 6----X-X--- 7---------- 8---------- 9---------- Updating best to 4 and 3 Updating best to 5 and 7 Placing piece at 5 and 7 changing 4 and 6 to O changing 5 and 6 to O changing 5 and 5 to O changing 5 and 4 to O 0123456789 0---------- 1---------- 2---O-O---- 3----OO---- 4----XOO--- 5---OOOOO-- 6----X-X--- 7---------- 8---------- 9---------- X Enter the x coordinate: 3 X Enter the y coordinate: 6 changing 4 and 6 to X changing 5 and 6 to X 0123456789 0---------- 1---------- 2---O-O---- 3----OOX--- 4----XOX--- 5---OOOXO-- 6----X-X--- 7---------- 8---------- 9---------- Updating best to 2 and 7 Updating best to 3 and 7 42 Placing piece at 3 and 7 changing 4 and 6 to O changing 3 and 6 to O 0123456789 0---------- 1---------- 2---O-O---- 3----OOOO-- 4----XOO--- 5---OOOXO-- 6----X-X--- 7---------- 8---------- 9---------- X Enter the x coordinate: 2 X Enter the y coordinate: 6 changing 3 and 6 to X changing 4 and 6 to X changing 3 and 5 to X 0123456789 0---------- 1---------- 2---O-OX--- 3----OXXO-- 4----XOX--- 5---OOOXO-- 6----X-X--- 7---------- 8---------- 9---------- Updating best to 1 and 5 Updating best to 1 and 7 Placing piece at 1 and 7 changing 2 and 6 to O changing 3 and 5 to O changing 4 and 4 to O 0123456789 0---------- 1-------O-- 2---O-OO--- 3----OOXO-- 4----OOX--- 5---OOOXO-- 6----X-X--- 7---------- 8---------- 9---------- X Enter the x coordinate: 1 X Enter the y coordinate: 6 changing 2 and 6 to X 0123456789 0---------- 1------XO-- 2---O-OX--- 3----OOXO-- 4----OOX--- 5---OOOXO-- 6----X-X--- 7---------- 8---------- 43 9---------- Updating best to 0 and 7 Updating best to 1 and 5 Placing piece at 7 and 5 changing 6 and 6 to O changing 6 and 4 to O 0123456789 0---------- 1------XO-- 2---O-OX--- 3----OOXO-- 4----OOX--- 5---OOOXO-- 6----O-O--- 7-----O---- 8---------- 9---------- X Enter the x coordinate: 0 X Enter the y coordinate: 8 changing 1 and 7 to X 0123456789 0--------X- 1------XX-- 2---O-OX--- 3----OOXO-- 4----OOX--- 5---OOOXO-- 6----O-O--- 7-----O---- 8---------- 9---------- Updating best to 0 and 6 Placing piece at 0 and 6 changing 1 and 6 to O changing 2 and 6 to O changing 3 and 6 to O changing 4 and 6 to O changing 5 and 6 to O 0123456789 0------O-X- 1------OX-- 2---O-OO--- 3----OOOO-- 4----OOO--- 5---OOOOO-- 6----O-O--- 7-----O---- 8---------- 9---------- X Enter the x coordinate: 5 X Enter the y coordinate: 2 X forfeits turn 0123456789 0------O-X- 1------OX-- 2---O-OO--- 3----OOOO-- 4----OOO--- 5---OOOOO-- 6----O-O--- 44 7-----O---- 8---------- 9---------- Updating best to 1 and 8 Placing piece at 1 and 8 changing 1 and 7 to O 0123456789 0------O-X- 1------OOO- 2---O-OO--- 3----OOOO-- 4----OOO--- 5---OOOOO-- 6----O-O--- 7-----O---- 8---------- 9---------- X Enter the x coordinate: 6 X Enter the y coordinate: 2 changing 5 and 3 to X changing 4 and 4 to X changing 3 and 5 to X changing 2 and 6 to X changing 1 and 7 to X 0123456789 0------O-X- 1------OXO- 2---O-OX--- 3----OXOO-- 4----XOO--- 5---XOOOO-- 6--X-O-O--- 7-----O---- 8---------- 9---------- Updating best to 1 and 5 Placing piece at 5 and 2 changing 5 and 3 to O 0123456789 0------O-X- 1------OXO- 2---O-OX--- 3----OXOO-- 4----XOO--- 5--OOOOOO-- 6--X-O-O--- 7-----O---- 8---------- 9---------- X Enter the x coordinate: 1 X Enter the y coordinate: 9 changing 1 and 8 to X 0123456789 0------O-X- 1------OXXX 2---O-OX--- 3----OXOO-- 4----XOO--- 5--OOOOOO-- 6--X-O-O--- 45 7-----O---- 8---------- 9---------- Updating best to 1 and 5 Placing piece at 7 and 1 changing 6 and 2 to O 0123456789 0------O-X- 1------OXXX 2---O-OX--- 3----OXOO-- 4----XOO--- 5--OOOOOO-- 6--O-O-O--- 7-O---O---- 8---------- 9---------- X Enter the x coordinate: 8 X Enter the y coordinate: 0 changing 7 and 1 to X changing 6 and 2 to X changing 5 and 3 to X 0123456789 0------O-X- 1------OXXX 2---O-OX--- 3----OXOO-- 4----XOO--- 5--OXOOOO-- 6--X-O-O--- 7-X---O---- 8X--------- 9---------- Updating best to 1 and 5 Placing piece at 3 and 3 changing 4 and 4 to O 0123456789 0------O-X- 1------OXXX 2---O-OX--- 3---OOXOO-- 4----OOO--- 5--OXOOOO-- 6--X-O-O--- 7-X---O---- 8X--------- 9---------- X Enter the x coordinate: 7 X Enter the y coordinate: 6 changing 6 and 6 to X changing 5 and 6 to X changing 4 and 6 to X changing 3 and 6 to X 0123456789 0------O-X- 1------OXXX 2---O-OX--- 3---OOXXO-- 4----OOX--- 5--OXOOXO-- 46 6--X-O-X--- 7-X---OX--- 8X--------- 9---------- Updating best to 1 and 5 Updating best to 2 and 4 Updating best to 8 and 6 Placing piece at 8 and 6 changing 7 and 6 to O changing 6 and 6 to O changing 5 and 6 to O changing 4 and 6 to O changing 3 and 6 to O changing 2 and 6 to O 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3---OOXOO-- 4----OOO--- 5--OXOOOO-- 6--X-O-O--- 7-X---OO--- 8X-----O--- 9---------- X Enter the x coordinate: 3 X Enter the y coordinate: 2 changing 3 and 3 to X changing 3 and 4 to X 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3--XXXXOO-- 4----OOO--- 5--OXOOOO-- 6--X-O-O--- 7-X---OO--- 8X-----O--- 9---------- Updating best to 2 and 2 Updating best to 2 and 4 Updating best to 3 and 1 Placing piece at 3 and 1 changing 3 and 2 to O changing 3 and 3 to O changing 3 and 4 to O changing 3 and 5 to O 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3-OOOOOOO-- 4----OOO--- 5--OXOOOO-- 6--X-O-O--- 7-X---OO--- 8X-----O--- 9---------- X Enter the x coordinate: 9 47 X Enter the y coordinate: 7 changing 8 and 6 to X changing 7 and 5 to X changing 6 and 4 to X 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3-OOOOOOO-- 4----OOO--- 5--OXOOOO-- 6--X-X-O--- 7-X---XO--- 8X-----X--- 9-------X-- Updating best to 2 and 8 Updating best to 7 and 4 Placing piece at 7 and 4 changing 7 and 5 to O changing 6 and 4 to O 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3-OOOOOOO-- 4----OOO--- 5--OXOOOO-- 6--X-O-O--- 7-X--OOO--- 8X-----X--- 9-------X-- X Enter the x coordinate: 4 X Enter the y coordinate: 2 changing 5 and 2 to X 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3-OOOOOOO-- 4--X-OOO--- 5--XXOOOO-- 6--X-O-O--- 7-X--OOO--- 8X-----X--- 9-------X-- Updating best to 2 and 8 Updating best to 5 and 1 Placing piece at 7 and 2 changing 6 and 2 to O changing 5 and 2 to O changing 4 and 2 to O 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3-OOOOOOO-- 4--O-OOO--- 5--OXOOOO-- 6--O-O-O--- 7-XO-OOO--- 48 8X-----X--- 9-------X-- X Enter the x coordinate: 7 X Enter the y coordinate: 3 changing 7 and 2 to X 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3-OOOOOOO-- 4--O-OOO--- 5--OXOOOO-- 6--O-O-O--- 7-XXXOOO--- 8X-----X--- 9-------X-- Updating best to 2 and 8 Updating best to 7 and 0 Placing piece at 7 and 0 changing 7 and 1 to O changing 7 and 2 to O changing 7 and 3 to O 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3-OOOOOOO-- 4--O-OOO--- 5--OXOOOO-- 6--O-O-O--- 7OOOOOOO--- 8X-----X--- 9-------X-- X Enter the x coordinate: 6 X Enter the y coordinate: 0 changing 7 and 0 to X 0123456789 0------O-X- 1------OXXX 2---O-OO--- 3-OOOOOOO-- 4--O-OOO--- 5--OXOOOO-- 6X-O-O-O--- 7XOOOOOO--- 8X-----X--- 9-------X-- Updating best to 2 and 8 Placing piece at 2 and 8 changing 1 and 7 to O 0123456789 0------O-X- 1------OOXX 2---O-OO-O- 3-OOOOOOO-- 4--O-OOO--- 5--OXOOOO-- 6X-O-O-O--- 7XOOOOOO--- 8X-----X--- 49 9-------X-- X Enter the x coordinate: 7 X Enter the y coordinate: 7 changing 7 and 6 to X changing 7 and 5 to X changing 7 and 4 to X changing 7 and 3 to X changing 7 and 2 to X changing 7 and 1 to X 0123456789 0------O-X- 1------OOXX 2---O-OO-O- 3-OOOOOOO-- 4--O-OOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXXXXXX-- 8X-----X--- 9-------X-- Updating best to 8 and 2 Updating best to 8 and 4 Placing piece at 8 and 4 changing 7 and 5 to O changing 7 and 3 to O changing 7 and 4 to O 0123456789 0------O-X- 1------OOXX 2---O-OO-O- 3-OOOOOOO-- 4--O-OOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOXX-- 8X---O-X--- 9-------X-- X Enter the x coordinate: 2 X Enter the y coordinate: 0 changing 3 and 1 to X changing 4 and 2 to X 0123456789 0------O-X- 1------OOXX 2X--O-OO-O- 3-XOOOOOO-- 4--X-OOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOXX-- 8X---O-X--- 9-------X-- Updating best to 3 and 0 Updating best to 7 and 8 Placing piece at 7 and 8 changing 7 and 7 to O changing 7 and 6 to O 0123456789 0------O-X- 1------OOXX 50 2X--O-OO-O- 3-XOOOOOO-- 4--X-OOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOOOO- 8X---O-X--- 9-------X-- X Enter the x coordinate: 2 X Enter the y coordinate: 8 That place was already chosen - try again! X Enter the x coordinate: 3 X Enter the y coordinate: 8 changing 2 and 8 to X changing 3 and 7 to X changing 3 and 6 to X changing 3 and 5 to X changing 3 and 4 to X changing 3 and 3 to X changing 3 and 2 to X 0123456789 0------O-X- 1------OOXX 2X--O-OO-X- 3-XXXXXXXX- 4--X-OOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOOOO- 8X---O-X--- 9-------X-- Updating best to 2 and 2 Placing piece at 2 and 2 changing 3 and 3 to O changing 3 and 2 to O changing 4 and 2 to O 0123456789 0------O-X- 1------OOXX 2X-OO-OO-X- 3-XOOXXXXX- 4--O-OOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOOOO- 8X---O-X--- 9-------X-- X Enter the x coordinate: 9 X Enter the y coordinate: 4 changing 8 and 4 to X changing 7 and 4 to X changing 6 and 4 to X changing 5 and 4 to X changing 4 and 4 to X 0123456789 0------O-X- 1------OOXX 2X-OO-OO-X- 3-XOOXXXXX- 4--O-XOO--- 51 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOOOO- 8X---X-X--- 9----X--X-- Updating best to 2 and 4 Updating best to 3 and 9 Placing piece at 3 and 9 changing 2 and 8 to O changing 3 and 8 to O changing 3 and 7 to O changing 3 and 6 to O changing 3 and 5 to O changing 3 and 4 to O 0123456789 0------O-X- 1------OOXX 2X-OO-OO-O- 3-XOOOOOOOO 4--O-XOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOOOO- 8X---X-X--- 9----X--X-- X Enter the x coordinate: 7 X Enter the y coordinate: 9 changing 7 and 8 to X changing 7 and 7 to X changing 7 and 6 to X changing 7 and 5 to X 0123456789 0------O-X- 1------OOXX 2X-OO-OO-O- 3-XOOOOOOOO 4--O-XOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXXXXXX 8X---X-X--- 9----X--X-- Updating best to 3 and 0 Updating best to 9 and 3 Placing piece at 9 and 3 changing 8 and 4 to O changing 7 and 5 to O 0123456789 0------O-X- 1------OOXX 2X-OO-OO-O- 3-XOOOOOOOO 4--O-XOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOXXXX 8X---O-X--- 9---OX--X-- X Enter the x coordinate: 2 X Enter the y coordinate: 7 52 changing 3 and 6 to X changing 4 and 5 to X 0123456789 0------O-X- 1------OOXX 2X-OO-OOXO- 3-XOOOOXOOO 4--O-XXO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOXXXX 8X---O-X--- 9---OX--X-- Updating best to 3 and 0 Updating best to 4 and 3 Placing piece at 4 and 3 changing 4 and 4 to O changing 4 and 5 to O 0123456789 0------O-X- 1------OOXX 2X-OO-OOXO- 3-XOOOOXOOO 4--OOOOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOXXXX 8X---O-X--- 9---OX--X-- X Enter the x coordinate: 2 X Enter the y coordinate: 4 changing 3 and 4 to X changing 4 and 4 to X changing 2 and 5 to X changing 2 and 6 to X 0123456789 0------O-X- 1------OOXX 2X-OOXXXXO- 3-XOOXOXOOO 4--OOXOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOXXXX 8X---O-X--- 9---OX--X-- Updating best to 0 and 9 Updating best to 1 and 4 Placing piece at 1 and 4 changing 2 and 4 to O changing 3 and 4 to O changing 4 and 4 to O changing 5 and 4 to O changing 6 and 4 to O changing 7 and 4 to O 0123456789 0------O-X- 1----O-OOXX 2X-OOOXXXO- 3-XOOOOXOOO 53 4--OOOOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOXXXX 8X---O-X--- 9---OX--X-- X Enter the x coordinate: 2 X Enter the y coordinate: 1 changing 2 and 2 to X changing 2 and 3 to X changing 2 and 4 to X 0123456789 0------O-X- 1----O-OOXX 2XXXXXXXXO- 3-XOOOOXOOO 4--OOOOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOXXXX 8X---O-X--- 9---OX--X-- Updating best to 0 and 9 Placing piece at 1 and 5 changing 2 and 6 to O changing 2 and 5 to O changing 2 and 4 to O 0123456789 0------O-X- 1----OOOOXX 2XXXXOOOXO- 3-XOOOOXOOO 4--OOOOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOXXXX 8X---O-X--- 9---OX--X-- X Enter the x coordinate: 9 X Enter the y coordinate: 2 changing 9 and 3 to X 0123456789 0------O-X- 1----OOOOXX 2XXXXOOOXO- 3-XOOOOXOOO 4--OOOOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOXXXX 8X---O-X--- 9--XXX--X-- Updating best to 0 and 9 Placing piece at 0 and 9 changing 1 and 8 to O changing 2 and 7 to O changing 3 and 6 to O 0123456789 0------O-XO 1----OOOOOX 54 2XXXXOOOOO- 3-XOOOOOOOO 4--OOOOO--- 5--OXOOOO-- 6X-O-O-O--- 7XXXOOOXXXX 8X---O-X--- 9--XXX--X-- X Enter the x coordinate: 0 X Enter the y coordinate: 4 changing 1 and 4 to X changing 2 and 4 to X changing 3 and 4 to X changing 4 and 4 to X changing 5 and 4 to X changing 6 and 4 to X changing 7 and 4 to X changing 8 and 4 to X 0123456789 0----X-O-XO 1----XOOOOX 2XXXXXOOOO- 3-XOOXOOOOO 4--OOXOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOXXXX 8X---X-X--- 9--XXX--X-- Updating best to 0 and 3 Updating best to 0 and 5 Updating best to 1 and 2 Placing piece at 1 and 3 changing 2 and 4 to O changing 2 and 3 to O changing 1 and 4 to O 0123456789 0----X-O-XO 1---OOOOOOX 2XXXOOOOOO- 3-XOOXOOOOO 4--OOXOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOXXXX 8X---X-X--- 9--XXX--X-- X Enter the x coordinate: 0 X Enter the y coordinate: 3 changing 1 and 3 to X changing 2 and 3 to X changing 3 and 3 to X changing 4 and 3 to X 0123456789 0---XX-O-XO 1---XOOOOOX 2XXXXOOOOO- 3-XOXXOOOOO 4--OXXOO--- 5--OXXOOO-- 55 6X-O-X-O--- 7XXXOXOXXXX 8X---X-X--- 9--XXX--X-- Updating best to 0 and 2 Updating best to 1 and 1 Updating best to 1 and 2 Placing piece at 1 and 2 changing 2 and 3 to O changing 3 and 4 to O changing 2 and 2 to O changing 1 and 3 to O 0123456789 0---XX-O-XO 1--OOOOOOOX 2XXOOOOOOO- 3-XOXOOOOOO 4--OXXOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOXXXX 8X---X-X--- 9--XXX--X-- X Enter the x coordinate: 2 X Enter the y coordinate: 9 changing 2 and 8 to X changing 2 and 7 to X changing 2 and 6 to X changing 2 and 5 to X changing 2 and 4 to X changing 2 and 3 to X changing 2 and 2 to X 0123456789 0---XX-O-XO 1--OOOOOOOX 2XXXXXXXXXX 3-XOXOOOOOO 4--OXXOO--- 5--OXXOOO-- 6X-O-X-O--- 7XXXOXOXXXX 8X---X-X--- 9--XXX--X-- Updating best to 0 and 7 Updating best to 1 and 1 Updating best to 6 and 3 Placing piece at 6 and 3 changing 5 and 4 to O changing 5 and 3 to O changing 4 and 3 to O changing 3 and 3 to O changing 2 and 3 to O 0123456789 0---XX-O-XO 1--OOOOOOOX 2XXXOXXXXXX 3-XOOOOOOOO 4--OOXOO--- 5--OOOOOO-- 6X-OOX-O--- 56 7XXXOXOXXXX 8X---X-X--- 9--XXX--X-- X Enter the x coordinate: 0 X Enter the y coordinate: 7 changing 1 and 8 to X changing 1 and 7 to X changing 1 and 6 to X 0123456789 0---XX-OXXO 1--OOOOXXXX 2XXXOXXXXXX 3-XOOOOOOOO 4--OOXOO--- 5--OOOOOO-- 6X-OOX-O--- 7XXXOXOXXXX 8X---X-X--- 9--XXX--X-- Updating best to 0 and 5 Placing piece at 9 and 6 changing 8 and 6 to O changing 7 and 6 to O 0123456789 0---XX-OXXO 1--OOOOXXXX 2XXXOXXXXXX 3-XOOOOOOOO 4--OOXOO--- 5--OOOOOO-- 6X-OOX-O--- 7XXXOXOOXXX 8X---X-O--- 9--XXX-OX-- X Enter the x coordinate: 8 X Enter the y coordinate: 3 changing 7 and 3 to X changing 6 and 3 to X changing 5 and 3 to X changing 4 and 3 to X changing 3 and 3 to X changing 2 and 3 to X changing 1 and 3 to X 0123456789 0---XX-OXXO 1--OXOOXXXX 2XXXXXXXXXX 3-XOXOOOOOO 4--OXXOO--- 5--OXOOOO-- 6X-OXX-O--- 7XXXXXOOXXX 8X--XX-O--- 9--XXX-OX-- Updating best to 0 and 2 Updating best to 1 and 1 Placing piece at 8 and 2 changing 7 and 3 to O changing 6 and 4 to O changing 7 and 2 to O 57 0123456789 0---XX-OXXO 1--OXOOXXXX 2XXXXXXXXXX 3-XOXOOOOOO 4--OXXOO--- 5--OXOOOO-- 6X-OXO-O--- 7XXOOXOOXXX 8X-OXX-O--- 9--XXX-OX-- X Enter the x coordinate: 9 X Enter the y coordinate: 1 changing 8 and 2 to X changing 7 and 3 to X changing 6 and 4 to X changing 5 and 5 to X changing 4 and 6 to X changing 3 and 7 to X 0123456789 0---XX-OXXO 1--OXOOXXXX 2XXXXXXXXXX 3-XOXOOOXOO 4--OXXOX--- 5--OXOXOO-- 6X-OXX-O--- 7XXOXXOOXXX 8X-XXX-O--- 9-XXXX-OX-- Updating best to 0 and 2 Updating best to 1 and 1 Placing piece at 1 and 1 changing 2 and 2 to O changing 3 and 3 to O changing 4 and 4 to O changing 5 and 5 to O 0123456789 0---XX-OXXO 1-OOXOOXXXX 2XXOXXXXXXX 3-XOOOOOXOO 4--OXOOX--- 5--OXOOOO-- 6X-OXX-O--- 7XXOXXOOXXX 8X-XXX-O--- 9-XXXX-OX-- X Enter the x coordinate: 0 X Enter the y coordinate: 2 changing 1 and 2 to X changing 2 and 2 to X changing 3 and 2 to X changing 4 and 2 to X changing 5 and 2 to X changing 6 and 2 to X changing 7 and 2 to X changing 1 and 1 to X 0123456789 0--XXX-OXXO 58 1-XXXOOXXXX 2XXXXXXXXXX 3-XXOOOOXOO 4--XXOOX--- 5--XXOOOO-- 6X-XXX-O--- 7XXXXXOOXXX 8X-XXX-O--- 9-XXXX-OX-- Updating best to 0 and 0 Updating best to 1 and 0 Placing piece at 1 and 0 changing 2 and 1 to O changing 3 and 2 to O changing 4 and 3 to O changing 1 and 1 to O changing 1 and 2 to O changing 1 and 3 to O 0123456789 0--XXX-OXXO 1OOOOOOXXXX 2XOXXXXXXXX 3-XOOOOOXOO 4--XOOOX--- 5--XXOOOO-- 6X-XXX-O--- 7XXXXXOOXXX 8X-XXX-O--- 9-XXXX-OX-- X Enter the x coordinate: 0 X Enter the y coordinate: 0 changing 1 and 1 to X changing 1 and 0 to X 0123456789 0X-XXX-OXXO 1XXOOOOXXXX 2XOXXXXXXXX 3-XOOOOOXOO 4--XOOOX--- 5--XXOOOO-- 6X-XXX-O--- 7XXXXXOOXXX 8X-XXX-O--- 9-XXXX-OX-- Updating best to 0 and 1 Updating best to 0 and 5 Updating best to 5 and 1 Placing piece at 5 and 1 changing 5 and 2 to O changing 5 and 3 to O changing 4 and 2 to O 0123456789 0X-XXX-OXXO 1XXOOOOXXXX 2XOXXXXXXXX 3-XOOOOOXOO 4--OOOOX--- 5-OOOOOOO-- 6X-XXX-O--- 7XXXXXOOXXX 59 8X-XXX-O--- 9-XXXX-OX-- X Enter the x coordinate: 0 X Enter the y coordinate: 1 changing 1 and 2 to X 0123456789 0XXXXX-OXXO 1XXXOOOXXXX 2XOXXXXXXXX 3-XOOOOOXOO 4--OOOOX--- 5-OOOOOOO-- 6X-XXX-O--- 7XXXXXOOXXX 8X-XXX-O--- 9-XXXX-OX-- Updating best to 0 and 5 Updating best to 9 and 5 Placing piece at 9 and 5 changing 8 and 4 to O changing 7 and 3 to O changing 6 and 2 to O 0123456789 0XXXXX-OXXO 1XXXOOOXXXX 2XOXXXXXXXX 3-XOOOOOXOO 4--OOOOX--- 5-OOOOOOO-- 6X-OXX-O--- 7XXXOXOOXXX 8X-XXO-O--- 9-XXXXOOX-- X Enter the x coordinate: 0 X Enter the y coordinate: 5 changing 1 and 5 to X changing 0 and 6 to X changing 1 and 4 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XOXXXXXXXX 3-XOOOOOXOO 4--OOOOX--- 5-OOOOOOO-- 6X-OXX-O--- 7XXXOXOOXXX 8X-XXO-O--- 9-XXXXOOX-- Updating best to 3 and 0 Updating best to 4 and 0 Updating best to 8 and 1 Placing piece at 8 and 1 changing 8 and 2 to O changing 8 and 3 to O changing 7 and 2 to O changing 6 and 3 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 60 2XOXXXXXXXX 3-XOOOOOXOO 4--OOOOX--- 5-OOOOOOO-- 6X-OOX-O--- 7XXOOXOOXXX 8XOOOO-O--- 9-XXXXOOX-- X Enter the x coordinate: 9 X Enter the y coordinate: 0 changing 8 and 1 to X changing 7 and 2 to X changing 6 and 3 to X changing 5 and 4 to X changing 4 and 5 to X changing 3 and 6 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XOXXXXXXXX 3-XOOOOXXOO 4--OOOXX--- 5-OOOXOOO-- 6X-OXX-O--- 7XXXOXOOXXX 8XXOOO-O--- 9XXXXXOOX-- Updating best to 3 and 0 Updating best to 4 and 0 Updating best to 6 and 5 Placing piece at 6 and 5 changing 7 and 4 to O changing 5 and 4 to O changing 6 and 4 to O changing 6 and 3 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XOXXXXXXXX 3-XOOOOXXOO 4--OOOXX--- 5-OOOOOOO-- 6X-OOOOO--- 7XXXOOOOXXX 8XXOOO-O--- 9XXXXXOOX-- X Enter the x coordinate: 8 X Enter the y coordinate: 5 changing 7 and 5 to X changing 6 and 5 to X changing 5 and 5 to X changing 8 and 4 to X changing 8 and 3 to X changing 8 and 2 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XOXXXXXXXX 3-XOOOOXXOO 4--OOOXX--- 61 5-OOOOXOO-- 6X-OOOXO--- 7XXXOOXOXXX 8XXXXXXO--- 9XXXXXOOX-- Updating best to 3 and 0 Updating best to 4 and 0 Placing piece at 4 and 7 changing 4 and 6 to O changing 4 and 5 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XOXXXXXXXX 3-XOOOOXXOO 4--OOOOOO-- 5-OOOOXOO-- 6X-OOOXO--- 7XXXOOXOXXX 8XXXXXXO--- 9XXXXXOOX-- X Enter the x coordinate: 5 X Enter the y coordinate: 0 changing 5 and 1 to X changing 5 and 2 to X changing 5 and 3 to X changing 5 and 4 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XOXXXXXXXX 3-XOOOOXXOO 4--OOOOOO-- 5XXXXXXOO-- 6X-OOOXO--- 7XXXOOXOXXX 8XXXXXXO--- 9XXXXXOOX-- Updating best to 3 and 0 Updating best to 4 and 0 Placing piece at 4 and 0 changing 5 and 1 to O changing 3 and 1 to O changing 2 and 2 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XOOXXXXXXX 3-OOOOOXXOO 4O-OOOOOO-- 5XOXXXXOO-- 6X-OOOXO--- 7XXXOOXOXXX 8XXXXXXO--- 9XXXXXOOX-- X Enter the x coordinate: 3 X Enter the y coordinate: 0 changing 4 and 0 to X changing 3 and 1 to X changing 3 and 2 to X 62 changing 3 and 3 to X changing 3 and 4 to X changing 3 and 5 to X changing 2 and 1 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOOOO-- 5XOXXXXOO-- 6X-OOOXO--- 7XXXOOXOXXX 8XXXXXXO--- 9XXXXXOOX-- Updating best to 4 and 1 Placing piece at 8 and 8 changing 7 and 7 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOOOO-- 5XOXXXXOO-- 6X-OOOXO--- 7XXXOOXOOXX 8XXXXXXO-O- 9XXXXXOOX-- X Enter the x coordinate: 9 X Enter the y coordinate: 9 changing 8 and 8 to X changing 7 and 7 to X changing 6 and 6 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOOOO-- 5XOXXXXOO-- 6X-OOOXX--- 7XXXOOXOXXX 8XXXXXXO-X- 9XXXXXOOX-X Updating best to 4 and 1 Updating best to 6 and 7 Placing piece at 6 and 7 changing 6 and 6 to O changing 6 and 5 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOOOO-- 5XOXXXXOO-- 6X-OOOOOO-- 7XXXOOXOXXX 8XXXXXXO-X- 63 9XXXXXOOX-X X Enter the x coordinate: 8 X Enter the y coordinate: 7 changing 7 and 6 to X changing 6 and 5 to X changing 8 and 6 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOOOO-- 5XOXXXXOO-- 6X-OOOXOO-- 7XXXOOXXXXX 8XXXXXXXXX- 9XXXXXOOX-X Updating best to 4 and 1 Updating best to 6 and 8 Updating best to 9 and 8 Placing piece at 9 and 8 changing 8 and 7 to O changing 7 and 6 to O changing 6 and 5 to O changing 5 and 4 to O changing 9 and 7 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOOOO-- 5XOXXOXOO-- 6X-OOOOOO-- 7XXXOOXOXXX 8XXXXXXXOX- 9XXXXXOOOOX X Enter the x coordinate: 6 X Enter the y coordinate: 8 changing 5 and 7 to X changing 4 and 6 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOOXO-- 5XOXXOXOX-- 6X-OOOOOOX- 7XXXOOXOXXX 8XXXXXXXOX- 9XXXXXOOOOX Updating best to 4 and 1 Updating best to 5 and 8 Placing piece at 5 and 8 changing 6 and 8 to O changing 7 and 8 to O changing 8 and 8 to O changing 5 and 7 to O 0123456789 64 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOOXO-- 5XOXXOXOOO- 6X-OOOOOOO- 7XXXOOXOXOX 8XXXXXXXOO- 9XXXXXOOOOX X Enter the x coordinate: 8 X Enter the y coordinate: 9 changing 7 and 8 to X changing 6 and 7 to X changing 5 and 6 to X changing 4 and 5 to X changing 8 and 8 to X changing 8 and 7 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOXXO-- 5XOXXOXXOO- 6X-OOOOOXO- 7XXXOOXOXXX 8XXXXXXXXXX 9XXXXXOOOOX Updating best to 4 and 1 Updating best to 6 and 9 Placing piece at 6 and 9 changing 7 and 8 to O changing 8 and 7 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOXXO-- 5XOXXOXXOO- 6X-OOOOOXOO 7XXXOOXOXOX 8XXXXXXXOXX 9XXXXXOOOOX X Enter the x coordinate: 5 X Enter the y coordinate: 9 changing 6 and 9 to X changing 6 and 8 to X changing 5 and 8 to X changing 5 and 7 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOXXO-- 5XOXXOXXXXX 6X-OOOOOXXX 7XXXOOXOXOX 65 8XXXXXXXOXX 9XXXXXOOOOX Updating best to 4 and 1 Updating best to 4 and 8 Placing piece at 4 and 8 changing 5 and 8 to O changing 6 and 8 to O changing 5 and 7 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXOO 4X-OOOXXOO- 5XOXXOXXOOX 6X-OOOOOXOX 7XXXOOXOXOX 8XXXXXXXOXX 9XXXXXOOOOX X Enter the x coordinate: 4 X Enter the y coordinate: 9 changing 5 and 8 to X changing 3 and 8 to X changing 3 and 9 to X changing 4 and 8 to X changing 4 and 7 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXXX 4X-OOOXXXXX 5XOXXOXXOXX 6X-OOOOOXOX 7XXXOOXOXOX 8XXXXXXXOXX 9XXXXXOOOOX Updating best to 4 and 1 Placing piece at 4 and 1 changing 5 and 2 to O 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXXX 4XOOOOXXXXX 5XOOXOXXOXX 6X-OOOOOXOX 7XXXOOXOXOX 8XXXXXXXOXX 9XXXXXOOOOX X Enter the x coordinate: 6 X Enter the y coordinate: 1 changing 6 and 2 to X changing 6 and 3 to X changing 6 and 4 to X changing 6 and 5 to X changing 6 and 6 to X changing 5 and 2 to X changing 4 and 3 to X 66 changing 5 and 1 to X changing 4 and 1 to X 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXXX 4XXOXOXXXXX 5XXXXOXXOXX 6XXXXXXXXOX 7XXXOOXOXOX 8XXXXXXXOXX 9XXXXXOOOOX O forfeits turn 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXXX 4XXOXOXXXXX 5XXXXOXXOXX 6XXXXXXXXOX 7XXXOOXOXOX 8XXXXXXXOXX 9XXXXXOOOOX Game over 0123456789 0XXXXXXXXXO 1XXXOXXXXXX 2XXOXXXXXXX 3XXXXXXXXXX 4XXOXOXXXXX 5XXXXOXXOXX 6XXXXXXXXOX 7XXXOOXOXOX 8XXXXXXXOXX 9XXXXXOOOOX X WON!!!! Play again? (Y or N) N THANKS FOR PLAYING! 67