Add challenge template
This commit is contained in:
parent
27f668c968
commit
ac2f6599a5
4 changed files with 47 additions and 0 deletions
2
template/README.md
Normal file
2
template/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# [Day <n>: <Day Title>](https://adventofcode.com/<year>/day/<n>)
|
||||
|
15
template/go/challenge.go
Normal file
15
template/go/challenge.go
Normal 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
17
template/info.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"inputFile": "input.txt",
|
||||
"testCases": {
|
||||
"one": [
|
||||
{
|
||||
"input": "",
|
||||
"expected": ""
|
||||
}
|
||||
],
|
||||
"two": [
|
||||
{
|
||||
"input": "",
|
||||
"expected": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
13
template/py/__init__.py
Normal file
13
template/py/__init__.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue