Siddhant8 / p1-coconuts1

0 stars 0 forks source link

Week of 1/11 #1

Open AidanRosen opened 3 years ago

AidanRosen commented 3 years ago

The issue list for week of 1/11 assignment containing personal cards/tickets that represent our work and code.

AidanRosen commented 3 years ago

Aidan's Stuff (Github profile link: https://github.com/AidanRosen)

  1. Connect to AWS <-- Completed (unable to show in code because it used a plug in rather than an actual Java file) Picture of AWS toolkit linked: https://drive.google.com/file/d/1jLlJqM5FdxbBwimtBM56QrSoV6sGrhFT/view?usp=sharing

  2. DEFUNCT: Pass URLs in the .txt file to AWS

  3. DEFUNCT: Recreate .txt file from AWS

  4. Create buttons based on content within .txt file (i.e name of video + URL)

    Code link: https://github.com/Siddhant8/p1coconuts1/blob/c78e38f942b977457053c9516b61e4a57f435ab8/src/ui/JukeBoxModel.java#L5

    Link is to model, which sets up the array list of the URLs. The arrayList is iterated with this control accessor: https://github.com/Siddhant8/p1coconuts1/blob/c78e38f942b977457053c9516b61e4a57f435ab8/src/ui/JukeBoxControl.java#L2

    Relies on using an ArrayList of the Cassette class, which inherits from button to create customized button objects

  5. Add a button that says "create cassettes" to create the buttons COMPLETE

    Code link: https://github.com/Siddhant8/p1coconuts1/blob/c78e38f942b977457053c9516b61e4a57f435ab8/src/ui/JukeBoxUI.java#L56

    Need to build the cassettes using an array built from the array of txt file lines <--- COMPLETE, as said above

  6. Use a cassette class to create multiple objects and add to jukebox ui <-- COMPLETE

    Code link to Cassette class, which extends (inheritance) of JButton: https://github.com/Siddhant8/p1coconuts1/blob/c78e38f942b977457053c9516b61e4a57f435ab8/src/ui/Cassette.java#L9

    NOTE: we need a custom class so that I can make an array of customized buttons ("Cassettes")

  7. Fixed "done" animation to work properly using timers and events. "Create Cassettes" button uses events:

    Code link to fixed timer: https://github.com/Siddhant8/p1coconuts1/blob/c78e38f942b977457053c9516b61e4a57f435ab8/src/ui/JukeBoxUI.java#L94

    Code link to fixed event (mouse listener) that triggers the timer: https://github.com/Siddhant8/p1coconuts1/blob/c78e38f942b977457053c9516b61e4a57f435ab8/src/ui/JukeBoxUI.java#L168

Notes for next week: Fix any bugs from "done" animation being overwritten too much or something (Cassettes appear in box layout format)

      Cassette buttons have picture of cassette <-- bug to fix with flow layout (do later, JFrame not a priority) 
        Cassette's text is the name of the youtube video <-- Do next week 

clear dead stuff

Siddhant8 commented 3 years ago

Siddhant Ranka's Work For the Week: Created an event-based coronavirus calculator that takes a given input of the number of people total, the number of people wearing masks, the initial number of cases before day 1 of the outbreak, and the day number since the initial outbreak. These inputs are used to calculate the number of coronavirus cases, which are stored to a file. If the number of cases hits the population number, then the file will add "Everyone has Coronavirus. Stay at Home Order." every time a new case is calculated that equals the population number. The coronavirus tracker codes are written in the PracticeModel.java file, PracticeControl.java file, and the PracticeUI.java file:

  1. PracticeModel The Model creates the variables to store the total population, the number of people wearing masks, the initial number of cases, and the number of days past since the start of the outbreak. The model also creates the method to calculate the number of cases and store the number of cases to a file.
  2. PracticeView The view creates the JFrame, four textfields with the first textfield placed to input the number of people, the second to input the number of mask-wearers, the third to enter the initial number of cases, and the fourth to enter the number of days since the initial outbreak. There is a button to the left of each text field, and after inputting one of the variables into a textfield the button to the left of the textfield is clicked to enter the number for that specific variable into the system. The view also has the button the user clicks to calculate the total number of coronavirus cases.
  3. PracticeControl The control passes the user input for the population, mask-wearers, initial case numbers, and days past from the view into the model. The control also passes the action of the user pressing the button into the model to execute the case calculation method in the model.
AndrewH06 commented 3 years ago

Andrew Hale's work for the week: Finalized React Router to get it working. Created snake game to play on site. Hosted website using Netlify. Bug fixes for hosted website. https://p1coconuts-teashop.netlify.app/ Link to git repository Git repository must be separate because Netlify pulls all code from a git repository and must be in React.