Add requirements and enable simple Python 2/3 compatibility.
This commit is contained in:
parent
d9f1e01247
commit
db876192ec
|
@ -7,7 +7,7 @@ US 2016.
|
||||||
|
|
||||||
## Getting Started
|
## 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`
|
1. Run the game using: `python main.py`
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
2
main.py
2
main.py
|
@ -19,7 +19,7 @@ class StrategyGame(FloatLayout):
|
||||||
super(StrategyGame, self).__init__(**kwargs)
|
super(StrategyGame, self).__init__(**kwargs)
|
||||||
|
|
||||||
number_of_regions = self.map_rows * self.map_cols
|
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
|
row = region / self.map_cols
|
||||||
col = region % self.map_cols
|
col = region % self.map_cols
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Cython
|
||||||
|
Kivy==1.9.1
|
Loading…
Reference in New Issue