Add requirements and enable simple Python 2/3 compatibility.

This commit is contained in:
Dorian 2016-11-09 10:21:08 -05:00
parent d9f1e01247
commit db876192ec
3 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@ US 2016.
## Getting Started
1. Install kivy (via Anaconda or pip)
1. Install kivy (via Anaconda or `pip install -r requirements.txt`)
1. Run the game using: `python main.py`
## License

View File

@ -19,7 +19,7 @@ class StrategyGame(FloatLayout):
super(StrategyGame, self).__init__(**kwargs)
number_of_regions = self.map_rows * self.map_cols
for region in xrange(0, number_of_regions):
for region in range(0, number_of_regions):
row = region / self.map_cols
col = region % self.map_cols

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
Cython
Kivy==1.9.1