Skip to content

Commit

Permalink
Switched to unicode representation
Browse files Browse the repository at this point in the history
  • Loading branch information
omeyenburg committed Jan 28, 2024
1 parent 03b49e2 commit 6c143b5
Show file tree
Hide file tree
Showing 29 changed files with 52 additions and 314 deletions.
22 changes: 0 additions & 22 deletions build/lib/mazeforge/__init__.py

This file was deleted.

16 changes: 0 additions & 16 deletions build/lib/mazeforge/base.py

This file was deleted.

84 changes: 0 additions & 84 deletions build/lib/mazeforge/core/loader.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
54 changes: 0 additions & 54 deletions build/lib/mazeforge/generator.py

This file was deleted.

94 changes: 0 additions & 94 deletions build/lib/mazeforge/lib.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
39 changes: 0 additions & 39 deletions build/lib/mazeforge/maze.py

This file was deleted.

4 changes: 0 additions & 4 deletions build/lib/mazeforge/test.py

This file was deleted.

Binary file removed dist/mazeforge-0.1.1-py3-none-any.whl
Binary file not shown.
Binary file removed dist/mazeforge-0.1.1.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion src/mazeforge.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: mazeforge
Version: 0.1.1
Version: 0.1.2
Summary: Simple and fast generation of mazes
Author-email: Oskar Meyenburg <[email protected]>
License: MIT License
Expand Down
Binary file modified src/mazeforge/core/platform/windows/i686/libmaze.dll
Binary file not shown.
Binary file modified src/mazeforge/core/platform/windows/x86_64/libmaze.dll
Binary file not shown.
51 changes: 51 additions & 0 deletions src/mazeforge/core/scripts/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ void print_maze(int8_t *array, int width, int height) {
}
}

/*
switch (value) {
case 0:
printf(" ");
Expand Down Expand Up @@ -185,6 +186,56 @@ void print_maze(int8_t *array, int width, int height) {
case 15:
printf("┼─");
break;
}*/
switch (value) {
case 0:
printf(" ");
break;
case 1:
printf("\u2576\u2500");
break;
case 2:
printf("\u2577 ");
break;
case 3:
printf("\u250c\u2500");
break;
case 4:
printf("\u2574 ");
break;
case 5:
printf("\u2500\u2500");
break;
case 6:
printf("\u2510 ");
break;
case 7:
printf("\u252c\u2500");
break;
case 8:
printf("\u2575 ");
break;
case 9:
printf("\u2514\u2500");
break;
case 10:
printf("\u2502 ");
break;
case 11:
printf("\u251c\u2500");
break;
case 12:
printf("\u2518 ");
break;
case 13:
printf("\u2534\u2500");
break;
case 14:
printf("\u2524 ");
break;
case 15:
printf("\u253c\u2500");
break;
}
}
printf("\n");
Expand Down

0 comments on commit 6c143b5

Please sign in to comment.