Question: Urgent! Please help write a program below using JSP Standard Tag Language and Expression Language. -------------------------------------------------------------- Lab 6 - Tic-Tac-Toe In this assignment you are

Urgent! Please help write a program below using JSP Standard Tag Language and Expression Language.

--------------------------------------------------------------

Lab 6 - Tic-Tac-Toe

In this assignment you are to create a Tic-Tac-Toe game.

Your implementation should follow a Model-View-Controller approach. Your implementation shall not use any JSP Scripting Elements.

NOTE: Scripting Elements are not the same as EL and JSTL.

Your implementation should consist of the following:

Game Bean

Game Controller

Game View

Play Controller

New Game Controller

Game Bean

Your game bean will be responsible for managing all aspects of your tic-tac-toe game. It will record all moves by all players, keep track of the current player, determine if a move is valid, and report on whether the game is over, who the winner is, or if there is a draw.

Game Controller

The game controller is responsible for orchestrating interactions between your Game Bean and your Game View. Its main responsibility is to create a new Game Bean when one does not exist in the session.

Game View

Your game view should not contain any JSP Scripting Elements. Instead, it should make use of JSTL and EL to display the game board along with any relevant messages such as who's turn it is, and whether or not the game has completed. Additionally, the Game View should display a link/button allowing the players to start a new game once their existing game has concluded.

Play Controller

Your play controller is responsible for updating your game bean with new moves from the player. Once it's work is done, there is nothing for it to display, so it makes sense to have it redirect to your game page (Game Controller).

New Game Controller

Your new game controller is responsible for creating a new game.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!