Giter Site home page Giter Site logo

wrdartbee's Introduction

WRDartBee

This application was used for multiple world record attempts for the longest darts marathon. It was used by Frank Posthumus first, and a modified version was used for the succesfull attempt of Raymond Brink (72 hours!).

More information on both attempts: Raymond's attempt: https://www.rtl7darts.nl/nieuws/3027/fries_dart_72_uur_voor_goede_doel_en_pak/

Franks attempt: https://www.rtvdrenthe.nl/nieuws/139529/Wereldrecord-Frank-Posthumus-dart-ruim-zestig-uur-non-stop https://www.ad.nl/binnenland/frank-37-wil-record-darten-verbreken-moet-minstens-30-000-keer-gooien~acb0d75a/

Program in action

The program

When the application is in use, it shows 2 windows. One window, called the DisplayScreen, is used to show the score to all spectators. It also shows some statistics, like the average score, amount of darts thrown, etc. The other window, called the ControllerScreen, is operated by the score counter. This windows contains all the controls to enter new scores and to pause/resume the game. It is never visible to spectators.

The ControllerScreen

Saving data

Due to the nature of the program, it is of utmost importance that the darts data is always saved, even in the event of a power outage. To achieve this, the program writes its state to a file after every input. This file is the dartlog, and is a txt file containing all information. This file can be reopened, to resume a game on its last state when needed.

Performance

To ensure maximum performance even with the insane amount of darts involved, the internals are designed to ensure O(1) time for all actions and data access, including undo's. In other words, the program does not slow down with insanely large data sizes.

Why Java Swing + Kotlin?

Internally, this application was written using Java Swing and Kotlin. This might seem as a weird combination, as Swing is often seen as outdated, and Kotlin is extremely modern. Swing was chosen because i think it is still extremely easy to use and straightforward. However, it has it's limitations, modern complex layouts with lots of animations are difficult to achieve. This application was never intended to have any of that though, so that was never a problem. Another drawback of Swing is the often ugly layout building code. This can be improved a lot using Kotlin, to the point of it even being quite nice.

Running the program

There is a release in the release section in case you want to try it. Simply download the .jar and run it!

wrdartbee's People

Contributors

tom0334 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.