mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
add limit for height and width
This commit is contained in:
+1
-1
@@ -483,7 +483,7 @@ def main() -> None:
|
||||
"""Run the maze application."""
|
||||
mlx = None
|
||||
try:
|
||||
mlx = MazeMLX(1000, 1000)
|
||||
mlx = MazeMLX(1600, 2000)
|
||||
config = Parsing.get_data_maze("config.txt")
|
||||
amazing = AMazeIng(**config)
|
||||
mlx.start(amazing)
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
WIDTH=15
|
||||
HEIGHT=15
|
||||
WIDTH=100
|
||||
HEIGHT=100
|
||||
ENTRY=1,1
|
||||
EXIT=5,7
|
||||
OUTPUT_FILE=con
|
||||
|
||||
Binary file not shown.
+2
-2
@@ -12,8 +12,8 @@ class AMazeIng(BaseModel):
|
||||
|
||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||
|
||||
width: int = Field(ge=4)
|
||||
height: int = Field(ge=4)
|
||||
width: int = Field(ge=4, le=100)
|
||||
height: int = Field(ge=4, le=100)
|
||||
entry: tuple[int, int]
|
||||
exit: tuple[int, int]
|
||||
output_file: str = Field(min_length=3)
|
||||
|
||||
Reference in New Issue
Block a user