Limited Offer Get 25% off — use code BESTW25
No AI No Plagiarism On-Time Delivery Free Revisions
Claim Now
Prices start at $5 per page · plagiarism-free papers · free revisions for 14 days 24/7 support: support@bestwriters.com
Uncategorized

ISCG6421 – GUI Programming

  • Posted
  • Authoradmin
  • Length2,077 words
  • Reading time10 min
Write My Assignment FREE

ISCG6421 – GUI Programming
Page 1 of 8

ISCG6421
GUI Programming
Semester 1, 2020
Assignment 2: Solitaire game
School of Computing and
Information Technology
Deadline Time: 8:30am
Deadline Date: Thursday 4th June 2020
Course Weighting: 20%
Marks: 100

ASSIGNMENT AIMS
This assignment is individual and is intended to help you gain experience with designing and building
C# Windows applications and testing them with requirements-based testing.
Problem statement
The Solitaire game is a very old game where you have a set of cards. You will need to implement
“FreeCell” version, so please follow the rules from:
http://www.solitairecity.com/Help/FreeCell.shtml
https://www.solitairecardgames.com/play/freecell
The game is to transfer the cards from the Tableau to the Home Cells in 4 sets, by following the
FreeCell – Solitaire rules. The player tries to do this in as few moves as possible.
Requirements
You are provided with a C# starter project that you must use for this assignment. You are to complete
the game so that it:
• Uses 52 cards, 4 Free Cells and 4 Home Cells, and lets the user drag and drop cards from the
table to one of the predefine places.
• Informs the user that the game is over when all the cards have been transferred according to rules
(win condition).
• Enforces the FreeCell – Solitaire rules.
• Keeps count of the number of moves.
• Allows the user to begin a new game.
• Stores valid moves.
• Allows games (complete or incomplete) to be stored.
• Allows the running of stored (incomplete) games.
• Allows a completed game to be played from a list of stored moves using animation controlled by a
timer.
• Uses the supplied image files for the play surface, cells and card faces.
• Allows the user to change the game name to Te Reo Maori at runtime.
• Uses the following classes:
• A Card class to store data about the cards
ISCG6421 – GUI Programming
Page 2 of 8
• A CardMove class for saving moves
• A MainForm class to control the game.
Card Class
The card class should store the card’s face, suit, card back and current card face and suit. The card
class should have methods that allow access to the data items.
MainForm Class
The MainForm class can:
1. Have private global references for the Card being dragged and the Place that is the target of
the drop.
2. Have a [Reset] button that creates 52 Card objects randomly placed on a table, and then
position some of Cards in the starting position.
3. Check if a move can start when the user does a MouseDown on a card label and give an error
message if it cannot.
4. Check if a drop can happen on a Place and only show the AllowDrop cursor when the mouse
is over a Place if a drop is valid.
5. Display a count of the moves made and show the moves made in a textbox, one line per move.
6. Allow the user to change the Form title to Te Reo Maori (translation) via a button click.
CardMove Class
The CardMove class can:
• Store the index of the card making the move and the new Place it is dropped on.
• Have an AsText () method that gives this information as a string, e.g. “1,2” means that Card 1
moved to Place 2.
• Have two constructors, one that takes two integers (for card index and Place) as parameters, the
other takes a string in the form “2,1” as its parameter.
ISCG6421 – GUI Programming
Page 3 of 8
Required Tests
This is the minimum number of tests you need in your testing documentation:
1. The program displays the message “You have successfully completed the game” when all the
cards have been transferred to available places
2. Interface is displayed correctly when the program runs
3. Translated title is toggled when the button is pressed
4. Valid moves are stored
5. Uses 52 cards, four FreeCells and four HomeCells, and lets the user drag and drop cards from
table to one of the cells.
6. Keeps count of the number of moves.
7. The program displays the message “You have been unable to successfully complete the
game” when it becomes impossible to transfer all of the cards to the four places.
8. Enforces the rules
9. Try moving more than one card at a time
10. Try moving a card at the bottom of a pile
11. Try moving a card second from top of a pile
12. Try moving a card at the bottom of an unordered pile
13. Try putting a larger card on top of a smaller card
14. Begin a new game after a game has been started
15. Number of moves set to zero
16. Cards moved back to starting positions
17. Load an incomplete stored game and finish it
18. Play a completed game from a list of stored moves using animation controlled by a timer
Please note that your tests can involve more than one step and must be reproducible (i.e. explicit test
data and user actions) and independent of each other (i.e. please do not use the output of one test as
the input to another test.)
Delivery
• A soft copy must be uploaded onto Moodle prior to the deadline and it must comprise:
• The testing documentation.
• ALL files needed to compile and run your application from the Visual Studio Community
2017 environment used in the Department of Computing labs. Please note that you must
submit your assignment in Visual Studio Community 2017. 30 marks will be deducted if
this is not done.
Test Cases
Please using the following format for your test cases

Requirement to test Test Data Input Expected Outcomes Actual Outcomes

Deadline for questions
Please note that there is a deadline for questions on the assignment at 8:30 a.m. on Tuesday 4 June
2019. Please make sure that you ask any questions regarding the assignment before this deadline.
ISCG6421 – GUI Programming
Page 4 of 8
Marking
• Marks will be deducted for any requirement (or for multi-part requirements, or each part of a
requirement) that is not fully implemented or has no or insufficient testing documentation.
• In the interface behaviour and data processing section, marks will be deducted for any
requirement (or for multi-part requirements, or each part of a requirement) that is not well
covered in the test plan or is reported as working in the test plan but does not work when the
assignment is marked. You are also expected to handle exceptions, using message boxes and
“try and catch” blocks.
• Check “Programming Standards for C Sharp Courses” on pages 7 and 8 of this document. The
standards for C# programming in this document MUST be followed. In particular, this includes
putting meaningful comments at the beginning of each and every method in the standard
format as given in the document.

Part Marks Actual
Interface behaviour, and data processing
• Interface set up correctly (matches screenshot – see page 8) 10
• Uses 52 cards and eight Places and lets the user drag and drop
cards from table to one of eight Places.
8
• Enforces the rules of the game 15
• Keeps count of the number of moves. 5
• Allows the user to begin a new game. 5
• Allows the running of stored moves. 5
• Allows the game to be played from a list of stored moves using
animation controlled by a timer.
10
• Uses the following classes:
• A Card class to store data about the cards.
• A CardMove class for saving moves.
• A MainForm class to control the game. (5)
22
Testing documentation 16
Naming conventions and correct internal documentation 4
Total: 100

Have a query? Want to improve your work?
You could visit:
• Student Learning and Achievement for learning advice and support.
• The Pacific Centre.
• Te Noho Kotahitanga Marae (building 171)
ISCG6421 – GUI Programming
Page 5 of 8
Assignment Delivery
Electronic submission of the assignment is required for ALL assignments. This copy must be submitted
on Moodle prior to 8:30am on the due date.
Assignments submitted after the due date and time without having received an extension through
Affected Performance Consideration (APC) will be penalised according to the following:
• 10% of marks deducted if submitted within 24hrs of the deadline
• 20% of marks deducted if submitted after 24hrs and up to 48hrs of the deadline
• 30% of marks deducted if submitted after 48hrs and up to 72hrs of the deadline
• No grade will be awarded for an assignment that is submitted later than 72hrs after
the deadline.
Affected Performance Consideration
A student, who due to circumstances beyond his or her control, misses a test, final exam or an
assignment deadline or considers his or her performance in a test, final exam or an assignment to
have been adversely affected, should complete the APC application found at
https://www.unitec.ac.nz/current-students/study-support/affected-performance-consideration
Within any semester, a student may have only one APC per course.
When requesting an APC for an assignment, the APC must be submitted (along with work completed
to-date) within the time frame of the extension requested; i.e. if the Doctor’s certificate is for one (1)
day, then the APC and work completed must be submitted within one (1) day.
Assistance to other Students
Students themselves can be an excellent resource to assist the learning of fellow students, but there
are issues that arise in assessments that relate to the type and amount of assistance given by
students to other students. It is important to recognise what types of assistance are beneficial to
another’s learning and also what types of assistance are unacceptable in an assessment.
Beneficial Assistance
❖ Study Groups.
❖ Discussion.
❖ Sharing reading material.
❖ Testing another student’s programming work using the executable code and giving
them the results of that testing.
Unacceptable Assistance
❖ Working together on one copy of the assessment and submitting it as own work.
❖ Giving another student your work.
❖ Copying someone else’s work. This includes work done by someone not on the course.
❖ Changing or correcting another student’s work.
❖ Copying from books, Internet etc. and submitting it as own work. Anything taken
directly from another source must be acknowledged correctly: show the source
alongside the quotation.
For the purposes of academic integrity, students who haven’t demonstrated progress work in
the class time (and/or no check point submission) can be asked to demo/test their working
code and explain logic to the lecturer individually after assignment submission.
ISCG6421 – GUI Programming
Page 6 of 8
Programming Standards for C Sharp Courses
Internal Documentation
• Your code is such that other programmers can read it without struggling and your users are not
left guessing as to what to do.
• Each class file (including form classes) will begin with comments explaining the purpose of the
class, the author and the date written.
• Each method will start with comments that explain what the method does.
• Any code which does not have an obvious meaning or which uses a specialized technique is to
be commented. Use blank lines and further comments to identify where parts of a task begin
within a method.
• Code will use meaningful variable, class and method names. Components which have event
handler code for any of their events must have meaningful names, Components which have
properties assigned to in code must also have meaningful names. A naming convention that
identifies the type of component involved is recommended. E.g. btnExit, txtStartDate, lblTotal
Layout
• Code will be laid out in the style of the example below, using indentation steps of 4 spaces.
Blocks using and will use the layout shown here:
///<Summary> method : btnLeapYear_Click
///Check if a date falls in a leap year
///</Summary>
private void btnLeapYear_Click(object sender, System.EventArgs e)

DateTime aDate = getDate();

if ( DateTime.IsLeapYear(aDate.Year) )

label6.Text = aDate.Year.ToString() + ” IS a leap year”;

else

label6.Text = aDate.Year.ToString()
+ ” is NOT a leap year”;

• Parentheses and spaces will be used to make the meaning clear in arithmetic expressions and
conditions.
sum = (n1 / n2) + n3;
not
sum = n1 / n2 + n3;
nor
sum=n1/n2+n3;
• In general, each method will perform a single simple task.
• In the final version of your project please delete all sections of code that has been ‘commented
out’
ISCG6421 – GUI Programming
Page 7 of 8
User Interface
• Always provide the user with clear instructions explaining what they should do. Areas used for
input must be labelled to explain what input is required. Use hints or tool tips to explain interface
features.
• The user must be prevented from entering values or taking actions that the program is unable to
deal with. All input should be validated; any errors found should be reported back to the user with
an error message which clearly and politely explains how to correct the error. The user should be
unable to proceed without correcting invalid input.
ISCG6421 – GUI Programming
Page 8 of 8
Interface Design: Screenshot

The post ISCG6421 – GUI Programming appeared first on My Assignment Online.

Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

✓ Native UK, USA & Australia writers ✓ Deadline from 3 hours ✓ 100% Plagiarism-Free — Turnitin included ✓ Unlimited free revisions ✓ Free to submit — compare quotes

admin

Academic writer and editor at BestWriters.

Get your paper off your plate tonight

Post your instructions for free. Prices start at $5 per page.

Place an order