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.
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)
.
This guide provides a brief overview of the steps to share your solution for the dart problem:
-
Clone the repository:
git clone https://github.com/elswit/dart.git
-
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.
- Commit your changes:
- Stage the changes:
git add .
- Commit the changes with a message:
git commit -m "Your commit message"
- 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.