Esh07 / simple-speed-golf-tournament-system

A simple golf tournament system in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Golf Tournament System

My first Java programme, which I made for a module "Introduction to Object-Oriented Programming" during my first semester of University.

A smiple golf tournament system uses the rules of normal golf, but each player's round is timed. It calculate the player's final adjusted time and declare the winner based on who has parred most of holes in the shortest final adjusted time.

Technology

  • Java

Goal and Requirements

Speed-golf uses the rules of normal golf, but each player's round is timed. A player's final adjusted time is the time taken to complete the course plus 1 minute for each shot taken. The lowest adjusted time is the winner.

Requirements
  • A tournament is played on a course. A course has a name and is made up of 18 holes (`course.txt`). Each hole has a par (the number of shots the hole is expected to take) usually between 3 and 5.
  • A tournament is played by a number of players. Each player has a unique name (can be considered to be a String of normal characters with no spaces). Each player is issued with a scorecard, onto which they enter the total time taken in minutes (to 1 decimal place) and the score for each hole. (`score.txt`)
  • At the end of the round, the system reads the scores from the scorecard. The system then provides a printout, showing the players performance on each hole, in terms of +/- compared to the par, and the final adjusted time for the round.
  • The player with the lowest net adjusted time is declared the winner.

Furthermore, Controller.java, a partial UML Class diagram, course.txt, and score.txt were already provided to me and did not require modification.

UML class partial class diagram

Partial UML class diagram

Output The output should match this layout correct out of tournament

Key learning

  • Define, create, and manipulate classes and objects using standard-object oriented programming concepts.
  • Represent object models using standard notation.
  • Solve small scale computing problems.

About

A simple golf tournament system in Java


Languages

Language:Java 100.0%