summaryrefslogtreecommitdiffstats
path: root/day17/__init__.py
blob: 03e90032eb8a32538f16e39416cb5e46d33cae41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- coding: utf-8 -*-
from abc import ABC
from dataclasses import dataclass
from typing import Iterator

from aoc import BaseAssignment
from aoc.datastructures import Coordinate
from aoc.decorators import infinite_generator


@dataclass
class Block:
    origin: Coordinate


class Assignment(BaseAssignment[int, str], ABC):
    @infinite_generator
    def infinite_moves(self, item: str) -> str:
        return item

    def infinite_blocks(self):
        pass


class AssignmentOne(Assignment):
    example_result = 1

    def run(self, input: Iterator[str]):
        i = 0

        moves = self.infinite_moves(input)

        # for move in self.infinite_moves(next(input)):
        #     i += 1
        #     print(move)
        #
        #     if i == 100:
        #         break


class AssignmentTwo(Assignment):
    pass