Fix path
This commit is contained in:
parent
d7d41fc4fb
commit
29fd86ae37
@ -9,6 +9,7 @@ Solution for problem 54 of Project Euler
|
||||
https://projecteuler.net/problem=54
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
from utils import timeit
|
||||
|
||||
|
||||
@ -115,7 +116,9 @@ def compute():
|
||||
|
||||
replace_map = {"T": 10, "J": 11, "Q": 12, "K": 13, "A": 14}
|
||||
score = [0, 0]
|
||||
for line in open("../files/Problem54.txt", "r").read().splitlines():
|
||||
|
||||
file = Path("/datos/Scripts/Gitea/Project_Euler/src/files/Problem54.txt")
|
||||
for line in open(file, "r").read().splitlines():
|
||||
line = replace_values_in_string(line, replace_map).split()
|
||||
hands = line[:5], line[5:]
|
||||
for rank in (royal_flush, straight_flush, four_of_a_kind, full_house, flush,
|
||||
|
Loading…
x
Reference in New Issue
Block a user