From 27057a601c43ab5a6dcaa5b396c6b3d891c921b9 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Thu, 25 Jan 2024 15:52:28 +0200 Subject: Sorting out import situation and making enum names for tiles for readability. --- tui/static.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tui/static.py') diff --git a/tui/static.py b/tui/static.py index 391e3f1..267b061 100644 --- a/tui/static.py +++ b/tui/static.py @@ -1,6 +1,7 @@ """ tui/static.py - Staattiset määritykset tui:ssa tarvittaville jutuille. """ from enum import Enum from dataclasses import dataclass +from board import Tile class Action(Enum): """ tominnot, joita voidaan saada palautusrvona """ @@ -57,7 +58,7 @@ class TileType: TileTypes = { - 0: TileType( "[ ]", [(0x7,0), (0x7,0), (0x7,0)] ), + Tile.BLANK: TileType( "[ ]", [(0x7,0), (0x7,0), (0x7,0)] ), 1: TileType( "[1]", [(0xA,0), (0xA,0), (0xA,0)] ), 2: TileType( "[2]", [(0xB,0), (0xB,0), (0xB,0)] ), 3: TileType( "[3]", [(0xD,0), (0xD,0), (0xD,0)] ), -- cgit v1.2.3