Question
this is a java Program Game You will develop an internet two-player game called the wolf and the sheep. The game is a board game
this is a java Program Game
You will develop an internet two-player game called the wolf and the sheep. The game is a board game which looks similar to what is shown below. The sheep, bottom yellow can move diagonally forward or backward. The wolves, top green can only move diagonally forward. The game ends when the sheep has passed the wolves (sheep win) or the sheep cannot move anywhere (wolves win).
The user will have to log in with a user name and password or create an account. The user data will be in a database, like SQL Server or Oracle or mySQL. Each user account will store the number of games played, date the account was created, the date of the last login, as well as number of wins and losses.
A sequence of steps may look like the images below (steps 1-6, top bottom, right to left). Movement of characters will be drag and drop and only legal moves will be allowed. Illegal moves will generate aJOptionPane error message. The drag and drop will be implemented on both players machines. Both players will see the movement of a piece. The game will be played on two computers.
The game will determine if there is a winner after each move is made. In case of a win the winner and loser will have their data updated in the database.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started