1. Homepage
  2. Programming
  3. Introduction to Programming - Assignment: Connect Four 4-in-a-row

Introduction to Programming - Assignment: Connect Four 4-in-a-row

Engage in a Conversation
NCC EducationUKIntroduction to ProgrammingConnect Four4-in-a-rowVisual Basic

Introduction to Programming

Assignment title:


Summer 2023 CourseNana.COM

Background information

Complete the following computer programming tasks using Visual Basic. For each task you must test the programming code you create. CourseNana.COM

The evidence you must produce is a working VB program and a Word document containing the following: • Screenshots of the user interface • Pseudocode • Completed Object Definition Sheet • The Visual Basic program code, with relevant comments (i.e., annotated) • Simple test criteria • Completed Test Log • Screenshots of the output generated when the program code is run CourseNana.COM

It would be a good idea to use the Windows Snipping tool to assemble this Word document. CourseNana.COM

You do not have to provide any general commentary on your work in a separate wordprocessed document, but you do have to provide short comments on the code to explain what each function or segment of code does. CourseNana.COM

You do not have to provide any history of what debugging you may have done. It is very important that the program code is clear, the outputs are designed to be easy to understand and your Word document is well presented. CourseNana.COM


This assessment is worth 100% of your overall grade. CourseNana.COM


The game Connect Four (also known as Four up, Four in a Row, and Connect 4) allows TWO (2) users to each put game pieces in space in a grid. The first user to get 4 of their game pieces in a row horizontally, vertically or diagonally, wins. If you are unfamiliar with the game there are online videos showing how it is played. The grid is 7 x 7 squares: CourseNana.COM

Each user takes it in turn to enter the column where they want to place their game piece. The piece is then stored in the lowest row where there is not already a piece. For example, player 1 first selects column 1. Their piece (1) is positioned in the bottom row. CourseNana.COM

Player 2 then also selects column 1. Their piece (2) is positioned 1 row higher. CourseNana.COM

When a column is full no more pieces can be played in that column. CourseNana.COM

The game ends when ONE (1) player has 4 pieces in a row, without any spaces or opponent pieces in-between. Or the game ends when every space in the grid has been played. CourseNana.COM

A user can select to save their game. The current content of the grid is then saved to an external text file, as well as the player whose turn it is to move next. When the program loads, it asks the user if they want to start a new game or load the last saved game. CourseNana.COM

Hints on design and implementation

  • Plan your GUI layout before starting to create the program.
  • Think carefully about how the user will select their column, and how the position of the pieces will be shown.

Task – 100 Marks

Task 1 Form design – 10 marks

Design your user interface for TWO (2) VB forms: • A form for the user to either start a new game or load the saved game • A form that allows the user to play the game CourseNana.COM

Task 2 Pseudocode and Object Definition Sheet – 28 marks

• Write pseudocode for the controls for selecting a new game or loading a saved game • Write pseudocode to allow TWO (2) users to take it in turns to play a piece • Write pseudocode to check whether a user has won by getting 4 pieces in a row horizontally, vertically or diagonally • Write pseudocode to save the game state in a text file • Write pseudocode to load the saved game state when selected • Poduce an Object Definition Sheet for the full program using the template on page8. CourseNana.COM

Task 3 Implementation – Main program – 32 marks

• Create the form to select a new game or load a saved game CourseNana.COM

• Create the form to display the grid CourseNana.COM

• Write the code to load the saved game CourseNana.COM

• Write the code to load a new game CourseNana.COM

• Write the code to allow TWO (2) users to play the game CourseNana.COM

• Write the code to check if a user has won CourseNana.COM

• Write the code to save the game CourseNana.COM

Task 4 Testing – 25 marks

• Design a testing strategy and complete a Test Log (see attached template) for each user input and the results. • Ensure you test all possible ways of playing the game and winning the game. • Tests should be documented in the Test Log and using screen shots of tests provided as evidence of testing. CourseNana.COM

Task 5 Publishing programme and installation documentation 5 marks

• Create documentation to explain how the program can be installed into a new system. Include the necessary information on files and folder location for each file. CourseNana.COM

• Document common errors that may occur, for example required text files not found, and how they can be corrected. CourseNana.COM


The assessment of your project will depend in part upon the quality of the documentation that you have produced. CourseNana.COM

  • Restate the specification of the assignment by listing the Required Outcomes.
  • Take the time required to design the assignment before you type any program code. Follow an appropriate design and documentation sequence.
  • Always document your designs before you implement them.
  • Keep up-to-date Object Definition Sheets and do basic tests at each stage of the development.
  • Provide a detailed design including, where appropriate, the design of any algorithms.
  • Build in error handling to involve meaningful messages that would help with any future maintenance of the software.
  • Annotate all implementation.
  • Design a testing strategy.
  • Justify the design of suitable comprehensive test data.
  • Show evidence of testing.
  • Where appropriate, detail any major corrective action that you have taken in the light of the testing process.

    Submission requirements

    A word-processed document must be submitted incorporating the full documentation of all the significant aspects of the development of the assignment above. The document should be submitted both in paper form and digital form. CourseNana.COM

Refer to the Guidance above when producing your final documentation. CourseNana.COM

You are required to submit a publishable copy of the compiled system together with installation notes. CourseNana.COM

This publishable copy, that includes a setup file, should be on an appropriate medium (CD, USB flash drive, etc.). CourseNana.COM

Candidate checklist Please use the following checklist to ensure that your work is ready for submission. Have you read the NCC Education document Academic Misconduct Policy and ensured that you have acknowledged all the sources that you have used in your work? CourseNana.COM

❑ Have you completed the Statement and Confirmation of Own Work form and attached it to your assignment? You must do this. CourseNana.COM

❑ Have you ensured that your work has not gone over or under the recommended word count by more than 10%? CourseNana.COM

❑ Have you ensured that your work does not contain viruses and can be run directly? CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
NCC Education代写,UK代写,Introduction to Programming代写,Connect Four代写,4-in-a-row代写,Visual Basic代写,NCC Education代编,UK代编,Introduction to Programming代编,Connect Four代编,4-in-a-row代编,Visual Basic代编,NCC Education代考,UK代考,Introduction to Programming代考,Connect Four代考,4-in-a-row代考,Visual Basic代考,NCC Educationhelp,UKhelp,Introduction to Programminghelp,Connect Fourhelp,4-in-a-rowhelp,Visual Basichelp,NCC Education作业代写,UK作业代写,Introduction to Programming作业代写,Connect Four作业代写,4-in-a-row作业代写,Visual Basic作业代写,NCC Education编程代写,UK编程代写,Introduction to Programming编程代写,Connect Four编程代写,4-in-a-row编程代写,Visual Basic编程代写,NCC Educationprogramming help,UKprogramming help,Introduction to Programmingprogramming help,Connect Fourprogramming help,4-in-a-rowprogramming help,Visual Basicprogramming help,NCC Educationassignment help,UKassignment help,Introduction to Programmingassignment help,Connect Fourassignment help,4-in-a-rowassignment help,Visual Basicassignment help,NCC Educationsolution,UKsolution,Introduction to Programmingsolution,Connect Foursolution,4-in-a-rowsolution,Visual Basicsolution,