Software Testing - Testometer Tic-Tac-Toe Game

By Anand Ramdeo on May 4, 2011 Comments

In the game of tic-tac-toe, two players take turns marking squares of an initially empty 3 × 3 grid with either X’s or O’s. The first player always marks squares using X’s, whereas the second player always marks squares using O’s. If at any point during the game either player manages to mark three consecutive squares in a row, column, or diagonal with his/her symbol, the game terminates.

Well then lets try out testing this TIC-Tac-Toe game. Like previous Testometer Tests, this one also will measure your testing skills. You should have a good understanding of this game and its rule before start writing test cases. Here you go...

  1. Given a board configuration, your goal is to determine whether the board configuration represents the possible final state of a valid tic-tac-toe game. If you want to leave some field empty, give '.' instead of 'O' and 'X'.
  2. Player X will always start the game.

For example, Enter the series like OX..X in the text box this will form a test cases for you. This string will be treated as a final state of a tic-tac-toe game assuming player X started. In the above case 'O' will go in the first cell 'X' in the next cell horizontally and so on so forth. Hope it is clear and you will enjoy thinking about various combinations for this.

             Enter String of 'X' ,'O'and '.'      
 

                                                                  
                                                                  
                                                                  
 


                 



 
Comments on Your Test Data :
 
Comments on Your Test Performance :
blog comments powered by Disqus
Finished reading? Browse all posts »