Skip to content

AhmedAbdelmotilab/Goalkeeper-Training-JAVA-GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Goalkeeper-Training-JAVA-GUI

Write a Concurrent Java program which illustrates an emulated training of a football goalkeeper. There is one goalkeeper and 4 players shooting at him. Each is running in a separate thread. The training proceeds as follows:

  1. The players take turns in shooting. Player 1 starts, followed by Player 2. Next is Player 3 and then Player 4. And they start over again with Player 1, and so on.
  2. Each player starts the shot by moving to a random location, at which a new ball is created. The player shoots the ball at the goalkeeper, who tries to catch it. The ball is shot with a random speed. The ball is directed towards a random point in the goal.
  3. The next player may only shoot after either the previous player scores a goal, or the goalkeeper succeeds in catching the ball. In either case, the shot ball disappears. The training continues until your application is terminated by the user. At this point, all threads must be correctly terminated. Your project may be implemented on the command line interface (CLI). #Code Screenshots Score Player Main GoolKeeper(03) GoolKeeper(02) GoolKeeper(01) GamePanel(07) GamePanel(06) GamePanel(05) GamePanel(04) GamePanel(03) GamePanel(02) GamePanel(01) GameFrame Ball(02) Ball(01)

#Video https://github.com/AhmedAbdelmotilab/Goalkeeper-Training-JAVA-GUI/assets/108872867/ac75d3ca-fffc-4fc5-9fa9-d3c359fc25d2

#Report GoalKeeper Training Report.pdf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages