Open bpbond opened 1 year ago
I think the next steps are making a matrix with 3 columns: x-coord, y-coord, and bounds, and 1000 rows. We then randomly assign each x-coord and y-coord a value between 0 and 1. Then we calculate the distance from the center (0.5, 0.5) to see if the distance is equal or less than 0.5. If greater, then bounds is false, else it is equal. We then count the number of columns that have true and make the ratio and use the ratio to solve for pi.
I also have a similar idea as Alanna.
OK, agreed, thank you both!
Let's set some goals and assignments - this is about practicing R programming but also Git/GitHub.
☝️ Go to one of the issues and claim it by assigning yourself:
Then (i) create a new branch, (ii) code and test your solution, and (iii) open a pull request!
@w-alanna @melatg0 This is an "issue" -- we can use it to discuss our plans for the darts program, assign tasks, and document problems.
Question for you both. Thinking back to the darts/pi walkthrough we did on the whiteboard...what are the high-level steps for our program?
For example, I think step number 1 will probably be to define constants.
@w-alanna already did one line of this:
What are the next steps for our darts-simulating program?