We all would have heard or in fact played the FLAMES game atleast once. Logically the game doesn't make a lot of sense, but it definitely is a lot of fun. And hence we thought, why not build it with the help of our ProGrads?
(If you haven't heard of this game before, then quickly google it up & understand before you proceed)
Fork this repo
Clone this repo
Practice Java basics - operators, conditions, loops, class and object
Upon completion, run the following commands:
git add .
git commit -m "ProGrad ID"
git push origin master
And finally, create a pull request so your ProGrad Mentor (PM) can review your work.
- Do not modify the entire code.
- Edit the code as per the instructions.
- Go to Java Resources -> src folder.
- You will have two packages src/controller and src/service.
- You need to modify src/controller/FlamesCheck and src/service/FlamesCheckService.
- Once the progressions are completed follow the instructions to run the application and test your code.
- Right - click on the project.
- Go to Run as -> Run on server.
- You can check the output in eclipse browser or in your browser.
- Uncomment the code inside Java Resources - src -testing - TestFlamesCheckService class file.
- Right - click on the project
- Go to Run as -> Junit Test.
- All the testcases must be evaluated.
- Input consist of 2 strings - name1 and name2
1 Output is a character that corresponds to the 'F','L','A','M','E','S' values
- Open the class file FlamesCheckService inside JAVA Resources - src - service.
- Create a public class called FlamesCheckService.
- Create a public method called findFlames of type character
- Your method takes 2 Strings as input and returns a character as output.
- Calculate FLAMES and return a character.
- Print the names in console
- Print the love character and the corresponding match
Your name is ProGrad.
Your partner name is FACEPrep.
You two are "LOVERS"
Happy Coding ProGrad ❤️