Skip to content

Commit 1757472

Browse files
committed
readme
1 parent caed5aa commit 1757472

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

2025/Day01/Solution.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace AdventOfCode.Y2025.Day01;
22

3+
using System;
34
using System.Collections.Generic;
45
using System.Linq;
56

@@ -12,7 +13,7 @@ class Solution : Solver {
1213
IEnumerable<int> Dial(IEnumerable<int> rotations) {
1314
int pos = 50;
1415
foreach (var rotation in rotations) {
15-
pos = (pos + rotation + 100) % 100;
16+
pos = (pos + rotation) % 100;
1617
yield return pos;
1718
}
1819
}

2025/calendar.svg

Lines changed: 1 addition & 1 deletion
Loading

Lib/Model/Calendar.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ public string ToSvg() {
199199
var text = token.Text
200200
.Replace("<", "&lt;")
201201
.Replace(">", "&gt;")
202+
.Replace("&", "&amp;")
202203
.Replace(" ", "&#160;");
203204
sb.Append($@"<tspan fill=""{token.RgbaColor}"">{text}</tspan>");
204205

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Advent of Code (2015-2024)
1+
# Advent of Code (2015-2025)
22
C# solutions to the [Advent of Code](https://adventofcode.com) problems.
33

4-
<a href="https://adventofcode.com"><img src="2024/calendar.svg" width="80%" /></a>
4+
<a href="https://adventofcode.com"><img src="2025/calendar.svg" width="80%" /></a>
55

66
I'm making a [website](https://aoc.csokavar.hu) out of this.
77

0 commit comments

Comments
 (0)