-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME_SIM
More file actions
25 lines (15 loc) · 1 KB
/
README_SIM
File metadata and controls
25 lines (15 loc) · 1 KB
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
Pre-Reqs
========
- Python 2.7 and Pygame 1.9
Getting Pygame
==============
Pygame can be downloaded on ubuntu with the package 'python-pygame'. Otherwise it can be installed from pip, or manually from the website: http://www.pygame.org/download.shtml
To Run
======
$ python sim.py
- or -
$ ./sim.py
Explanation
===========
Currently, the simulation creates a 10x10 grid of tiles, where green is normal, yellow is a hazard, blue is the goal, and black is a wall. It randomly populates this grid with enemies which are the red dots. Finally, the blue dot is the player. Pressing any key will exit the simulation.
This is a rough draft to get the architecture of the simulation down. Later work includes using images rather than drawing primitives, smarter map generation, working enemies (i.e. they move), smarter enemy spawning (i.e. they don't spawn in walls), movement and collision detection, sockets to connect to the ANN, sensors to feed data to the ANN, and a way to manipulate the environment for testing.