-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.txt
40 lines (29 loc) · 905 Bytes
/
README.txt
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
Simple "snake" game
===================
To run
------
On UNIX-like systems:
./snake_tkinter_game.py
OR
./snake_curses_game.py
On other systems:
python snake_tkinter_game.py
OR
python snake_curses_game.py
Notes
-----
The game may not be much to look at at the moment, but I think you may find
some aspects of the code interesting.
Notable code features
---------------------
* An example of Object-Oriented Python code (& the only example of this so far
in my Git repository).
* An example of the Observable design pattern.
* An example of the use of basic MVC concepts.
* The two alternative versions of the program (Curses and Tkinter) both use
the same model code (game.py, snake.py & numbers.py).
Further work
------------
* Make the controller (_game.py) shared between versions?
* Implement walls & collisions.
* Improve graphics & efficiency of Tkinter version.