Question: for tic tac toe game 1.) Front-end (5 points): Using WPF or write alternative console application, design two windows with all necessary controls buttons and
1.) Front-end (5 points): Using WPF or write alternative console application, design two windows with all necessary controls buttons and grids). The first one must have controls (buttons for WPF or keyboard press key in the case of console application) where a user can choose which type of the game they want to play: user-user, user-computer, and resume-game. The second window (WPF or Console has to have a 3X3 grid for playing with appended controls (buttons) according to user selection from first window. The controls are:
In case of user-user and user-computer: 'playX' and 'playo'
- ) Game logic (5 points): Implement game logic for Tic-tac-toe 3X3._ Each player can play only on fileds which are not occupied (being played before). The player cannot play before the opponent (another player) has not finished their move or at the beginning of the game the player can play first they are assigned as X player. In each step of the game, the program has to check if game is finished (there is a winner). In case that a player is a computer the program has to choose the best move leading to winning of the game.
- ) Back-end (5 points): Implement a back-end part which can read, write, and update game.txt file.
- ) Middleware-Controller (5 points): Implement a middleware which connects front-end and back-end. Middleware accepts data from back-end and placed then into appropriate place on front end in the same order specified on attribute id in XML step element. In addition, middleware accepts data from front-end and process it and sends to back-end.
- ) Test (5 points): Define at least 5 tests game.txt files which should cover simple, edge, and complex test cases. Write a class with main method which runs all define test cases.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
