Add challenge template

This commit is contained in:
akp 2021-11-27 14:28:52 +00:00
parent 27f668c968
commit ac2f6599a5
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
4 changed files with 47 additions and 0 deletions

2
template/README.md Normal file
View file

@ -0,0 +1,2 @@
# [Day <n>: <Day Title>](https://adventofcode.com/<year>/day/<n>)

15
template/go/challenge.go Normal file
View file

@ -0,0 +1,15 @@
package challenge
import "github.com/codemicro/adventOfCode/lib/aocgo"
type Challenge struct {
aocgo.BaseChallenge
}
func (c Challenge) One(instr string) (interface{}, error) {
return nil, nil
}
func (c Challenge) Two(instr string) (interface{}, error) {
return nil, nil
}

17
template/info.json Normal file
View file

@ -0,0 +1,17 @@
{
"inputFile": "input.txt",
"testCases": {
"one": [
{
"input": "",
"expected": ""
}
],
"two": [
{
"input": "",
"expected": ""
}
]
}
}

13
template/py/__init__.py Normal file
View file

@ -0,0 +1,13 @@
from typing import Any
from aocpy import BaseChallenge
class Challenge(BaseChallenge):
@staticmethod
def one(instr: str) -> Any:
raise NotImplementedError
@staticmethod
def two(instr: str) -> Any:
raise NotImplementedError