removed \r from input

This commit is contained in:
Baipyrus 2023-12-09 18:53:39 +01:00
parent 56a05578a7
commit 3c9a3de576

View File

@ -13,7 +13,7 @@ const cardPattern = [
const cards = ["A", "K", "Q", "J", "T", "9", "8", "7", "6", "5", "4", "3", "2"];
const input = readFileSync("input.txt")
.toString()
.split("\r\n")
.split("\n")
.filter((e) => e.length > 0);
const plays = input
.map((p) => {