Add base AoC libraries
Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
parent
ce41860c5c
commit
285adaa58b
3 changed files with 30 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -128,7 +128,6 @@ dist/
|
|||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
|
|
17
lib/aocgo/aocgo.go
Normal file
17
lib/aocgo/aocgo.go
Normal 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
13
lib/aocpy/__init__.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue