Package net.n1da.dev.euler
Class PE0054
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0054
-
- All Implemented Interfaces:
Solvable
public class PE0054 extends Problem
Solution for problem 54 "Poker hands" completed on Sun, 21 Aug 2016, 14:02.- Since:
- 16.08.2016 18:30:18
- Author:
- Nico Danneberg
- See Also:
- Problem @ Project Euler, Solution @ Ni-Da-Net
-
-
Method Summary
Modifier and Type Method Description void
prepare()
Here this problem is prepared by reading all lines of text from given file.java.lang.String
solve()
Since all needed logic for comparing two Poker hands is implemented in the class of poker-package, here just the twohands
per line have to created and compared.-
Methods inherited from class net.n1da.dev.euler.core.Problem
finish, getResult, getRuntime, toString
-
-
-
-
Method Detail
-
prepare
public void prepare()
Here this problem is prepared by reading all lines of text from given file.- Specified by:
prepare
in interfaceSolvable
- Overrides:
prepare
in classProblem
- See Also:
IO.readStrings(String)
-
solve
public java.lang.String solve()
Since all needed logic for comparing two Poker hands is implemented in the class of poker-package, here just the twohands
per line have to created and compared.- Returns:
- the number of hands player one wins
- See Also:
Hand.beats(Hand)
-
-