Coder Social home page Coder Social logo

simple-speed-golf-tournament-system's Introduction

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.

simple-speed-golf-tournament-system's People

Contributors

esh07 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.