Add base AoC libraries

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2021-10-20 21:14:04 +01:00
parent ce41860c5c
commit 285adaa58b
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
3 changed files with 30 additions and 1 deletions

1
.gitignore vendored
View file

@ -128,7 +128,6 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/

17
lib/aocgo/aocgo.go Normal file
View file

@ -0,0 +1,17 @@
package aocgo
import "errors"
type BaseChallenge struct{}
func (b *BaseChallenge) one(instr string) (interface{}, error) {
return nil, errors.New("not implemented")
}
func (b *BaseChallenge) two(instr string) (interface{}, error) {
return nil, errors.New("not implemented")
}
func (b *BaseChallenge) vis(instr string, outdir string) error {
return errors.New("not implemented")
}

13
lib/aocpy/__init__.py Normal file
View file

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