Improved template
This commit is contained in:
		| @@ -2,9 +2,13 @@ import 'aoc/helper.dart'; | |||||||
|  |  | ||||||
| String input = ""; | String input = ""; | ||||||
|  |  | ||||||
| void firstPart() {} | String firstPart() { | ||||||
|  |   return "unsolved"; | ||||||
|  | } | ||||||
|  |  | ||||||
| void secondPart() {} | String secondPart() { | ||||||
|  |   return "unsolved"; | ||||||
|  | } | ||||||
|  |  | ||||||
| Future<void> main(List<String> args) async { | Future<void> main(List<String> args) async { | ||||||
|   if (args.isEmpty) { |   if (args.isEmpty) { | ||||||
| @@ -20,6 +24,6 @@ Future<void> main(List<String> args) async { | |||||||
|  |  | ||||||
|   input = await getInput(year, day); |   input = await getInput(year, day); | ||||||
|   print('Advent of code $year day $day'); |   print('Advent of code $year day $day'); | ||||||
|   firstPart(); |   print('First part result: ${firstPart()}'); | ||||||
|   secondPart(); |   print('Second part result: ${secondPart()}'); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user