The purpose of this assignment is to understand how to use concurrency in
the Java progrmming language. But as you may already know, Java is an Object
Oriented programming language. Therefore, your design must adhere to the OO
design pattern to receive credit.
In assignment 1, you were asked to modify the producer consumer problem
to design a game called "Connect-4" using the C programming language. In this
assignment, you are to implement the same problem for playing the game of
"Connect 4" except your design must be in the Java programming language, and
must follow the objecte-oriented paradigm. Your implementation must use the
Lock and Condition Interfaces to implement the synchronization. Other
requirements for how the program is supposed to run are included in the
assignment 1 writeup on Blackboard.
Your design must focus on a game class and its contents. For instance a game
will have a board with the ability to check for wins and modify itself based
on a player's input. A referee should be able to check that board for wins
or ties by utilizing the board's check for wins/ties capabilities, this is
also part of the game. Also the game will have two players taking turns or
not taking turns (threads) playing the game as in assignment 1.
You may include any classes in addition to the one's mentioned above as you
see fit. But you must at least have the classes mentioned above and show
how they're working together to build a game.
Your program must run exactly as assignment 1 was supposed to run. The new
design is only implementation details, but the execution of the code must
be identical between this assignment and assignment 1.
Extra Credit: 25% of the assignment grade.
To receive the extra credit, you need to provide the correct related UML
diagrams for your design. You may even have them generate code for you to
use in your development. In order to receive credit, you must utilize all
SIX UML diagrams that we have used efficiently and necessarily, and they
must adhere to your implementation as described above. The UML diagrams
must represent the entire application.
Best of Luck
Đã trao cho:
13 freelancer đang chào giá trung bình $94 cho công việc này
Hello, I'm an expert in java programming as well as in concurrency and I'm very interested in your project. Let's talk and discuss the details. Regards