Objectives
The objectives of the assignment are to test the knowledge of the student in:
1. applying the design principles of graphical user interface (GUI).
2. constructing user‐friendly GUI.
3. understanding the concept of event handling.
4. using variables.
5. using control structures.
6. using arrays.
7. using classes.
8. using basic error handling techniques.
9. applying proper codingstandards.
10. applying basic logic.
Requirements
You must build a two‐player board game as part of your first assignment. The game should be played on a grid like the one below.
Figure 1: Grid
1. To play the game, a player should generate tworandom numbers. The player should then click the cell represented by the product of two randomly generated numbers. For example, if the generated number is a 2 and a 7, the player clicks the 7th cell.
2. Each player should be associated with a colour. For each correct click the colour of the cell representing the product of the random numbers should be changed to the colour associated with the player. A player should only be able to click and change the colour of the cell represented by product of the random numbers.
3. A player should miss the turn:
a. if the player clicks a wrong cell.
b. if the product of the numbers is a number which is not represented by any cell.
c. if the product represents a cell which has already been coloured.
4. At the start of the game, the initial score should have a value of 0. With each cell coloured, the score increases by the product of the numbers. You can display the score anywhere within the user interface.
5. The game should have a duration of 5 minutes. Hence, when the game starts, a timer should start. The value of the timer should decrease withtime and this decrement should be visible on screen at any point in time. You can display the time anywhere within the user interface.
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of