Skip to content

csml-beach/dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The Dart Game

This program simulates throwing darts from a fixed position away from the dartboard. Each throw has random inaccuracies and biases. The goal is to find the optimal throwing angles that compensate for these biases and errors.

Task

By analyzing the landing positions of the thrown darts on the plot, create a program that finds/learns throw angles that lead to more centered and accurate results.

Code Structure

The function simulate_3d_dart_throw in dart.py takes two arguments: angle_x and angle_y The function returns the 2-dimensional position of the dart as it hits the board.

Use the template function find_optimal_throw_angles to implement your code. You can use the function simulate_3d_dart_throw to test a few trial angles to get some data to work with. The goal is to find optimal angles in x and y directions such that the dart lands close to the origin (0,0).

Steps to Contribute

This guide provides a brief overview of the steps to share your solution for the dart problem:

  1. Clone the repository: git clone https://github.com/elswit/dart.git

  2. Make changes:

  • Navigate to the cloned repository's directory: cd dart
  • Create a new branch git checkout -b my-new-branch
  • Modify the necessary files using your preferred editor.
  1. Commit your changes:
  • Stage the changes: git add .
  • Commit the changes with a message: git commit -m "Your commit message"
  1. Push changes and create a pull request:
  • Push your branch: git push origin -u

  • Visit the repository's GitHub page in your browser.

  • Click on "Pull Requests" and then "New pull request".

  • Select the base branch and your branch with the changes.

  • Provide a title and description for your pull request.

  • Click on "Create pull request" to submit.

That's it! Your changes are now ready for review and consideration.

About

dart is a simple dart throwing simulator with random inaccuracies used for prototyping data assimilation and inverse problems

Topics

Resources

Stars

Watchers

Forks

Languages