Question: Write a java code using swing to build the pacman game as shown in the picture. the pacman should be a yellow color dot and

Write a java code using swing to build the pacman game as shown in the picture. the pacman should be a yellow color dot and 4 of ghosts should be of red dot and the food should be of green dot smaller in size then that of pacman and ghost. You do not need to use images. just use the dots to represent them. Your program should be fully playable. just create one level of the game. Score should be calculated as the game is over.
O OD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
