Reference no: EM133398409
Assignment:
C# program
Design, code, and test a TicTacToe game. The game should be:
1. A Windows Forms (.NET Framework) GUI application
2. The app must use a TableLayoutPanel to control the layout of Buttons, Labels, and other GUI components on the top-level Form
3. Use of MessageBox is not allowed in any part of the app. All UI elements must be part of the Form.
4. The app must resize from some reasonable min to max sizes with all components resizing appropriately
5. Your game must have 1 human player who has autonomy in selecting squares to place their mark.
6. The player shall play against the computer.
7. The computer will use a pseudo-random square selection to place its marker
8. The first player to move will be chosen using the Random class.
9. Each player, human and computer, should have a reasonable opportunity to move first.
10. The first player to move is automatically assigned to X, and the second player to move is set to O.
11. There should be controls to:
- Start a new game at any time.
- Stop a game and Exit the application at any time.
12. The winner of a game should be announced and the game ends as soon as there is a winner.
13. A game where neither player wins should be declared a "TIE" or a "CAT'S" game.