Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions