-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
43 lines (32 loc) · 802 Bytes
/
main.py
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
43
import util
import engine
import ui
PLAYER_ICON = '@'
PLAYER_START_X = 3
PLAYER_START_Y = 3
BOARD_WIDTH = 30
BOARD_HEIGHT = 20
def create_player():
'''
Creates a 'player' dictionary for storing all player related informations - i.e. player icon, player position.
Fell free to extend this dictionary!
Returns:
dictionary
'''
pass
def main():
player = create_player()
board = engine.create_board(BOARD_WIDTH, BOARD_HEIGHT)
util.clear_screen()
is_running = True
while is_running:
engine.put_player_on_board(board, player)
ui.display_board(board)
key = util.key_pressed()
if key == 'q':
is_running = False
else:
pass
util.clear_screen()
if __name__ == '__main__':
main()