File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ fn Game.new(s string) Game {
3737 blue = math.max (blue, count_blue)
3838 }
3939 return Game{
40- id: id.int ()
41- red: red
40+ id: id.int ()
41+ red: red
4242 green: green
43- blue: blue
43+ blue: blue
4444 }
4545}
4646
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ fn Game.new(s string) Game {
3737 blue = math.max (blue, count_blue)
3838 }
3939 return Game{
40- id: id.int ()
41- red: red
40+ id: id.int ()
41+ red: red
4242 green: green
43- blue: blue
43+ blue: blue
4444 }
4545}
4646
Original file line number Diff line number Diff line change @@ -25,17 +25,17 @@ fn Schematic.new(lines []string) Schematic {
2525 panic ('Cannot build grid from input with empty first line.' )
2626 }
2727 return Schematic{
28- grid: lines
29- width: lines[0 ].len
28+ grid: lines
29+ width: lines[0 ].len
3030 height: lines.len
3131 }
3232}
3333
3434fn Cursor .new (schematic Schematic) Cursor {
3535 return Cursor{
3636 schematic: schematic
37- x: 0
38- y: 0
37+ x: 0
38+ y: 0
3939 }
4040}
4141
Original file line number Diff line number Diff line change @@ -26,17 +26,17 @@ fn Schematic.new(lines []string) Schematic {
2626 panic ('Cannot build grid from input with empty first line.' )
2727 }
2828 return Schematic{
29- grid: lines
30- width: lines[0 ].len
29+ grid: lines
30+ width: lines[0 ].len
3131 height: lines.len
3232 }
3333}
3434
3535fn Cursor .new (schematic Schematic) Cursor {
3636 return Cursor{
3737 schematic: schematic
38- x: 0
39- y: 0
38+ x: 0
39+ y: 0
4040 }
4141}
4242
Original file line number Diff line number Diff line change @@ -50,5 +50,5 @@ fn card_value(winning []int, nums []int) int {
5050 if matched == 0 {
5151 return 0
5252 }
53- return int (math.pow (2 , matched- 1 ))
53+ return int (math.pow (2 , matched - 1 ))
5454}
You can’t perform that action at this time.
0 commit comments