logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

You must build a two‐player board game as part of your first assignment.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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.

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

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. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

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

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

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

. 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 Sea Ports. Here are the classes and their instance variables we wish to define:

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

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

799 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

559 Answers

Hire Me
expert
Husnain SaeedComputer science

546 Answers

Hire Me
expert
Atharva PatilComputer science

908 Answers

Hire Me

Get Free Quote!

264 Experts Online