This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tcod | |
import tcod.event | |
tcod.console_set_custom_font( | |
'arial10x10.png', | |
tcod.FONT_LAYOUT_TCOD | tcod.FONT_TYPE_GREYSCALE, | |
) | |
with tcod.console_init_root( | |
CONSOLE_WIDTH, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
var map = [ | |
['#', '#', '#' ,'#', '#', '#' ,'#', '#', '#', '#'], | |
['#', ' ', ' ', '#', ' ', ' ', ' ', ' ', ' ', '#'], | |
['#', ' ', ' ', '#', '#', ' ', ' ', ' ', ' ', '#'], | |
['#', '#', '#', '#', '#', ' ', ' ', ' ', ' ', '#'], | |
['#', ' ', '#', ' ', '#', '#', '#', '#', '#', '#'], | |
['#', ' ', '#', ' ', '#', ' ', ' ', ' ', ' ', '#'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import random | |
from typing import NamedTuple, FrozenSet | |
maze_height = 24 | |
maze_width = 48 | |
map_height = 50 | |
map_width = 80 |
OlderNewer