(icons were made in polish language, marked as TODO at the bottom of this page)
-
Game written in OOP Python.
-
GUI made in tkinter library.
-
I tried to use PEP8 standard, for easier code reading and editing.
-
I wrote that as my very first Python project, so don't blame me for crappy code
-
PyCharm from Jetbrains was my IDE
- Make sure you have Python installed(version 3 is preffered -> I tested it on 3.5.2 and it worked like a charm)
- Install tkinter library
$ sudo apt install python3-tk
- Type in terminal/console:
$ python3 World.py
no rules, it's a sandbox or a simulation
-
There are 9 creatures.
-
Each one has its own attributes, like:
- initiative - decides who moves first
example: Fox is smarter, so he moves first, then Turtle, etc.
-
strength - the stronger the animal is, the more enemies it can defeat
-
age - if there are two animals with the same initiative, older one moves first.
what animal species does:
they move around, reproduce themselves, kill each other and eat plants
what plants does
they just spread around the map and make no moves
Plant | icon | desciption |
---|---|---|
Grass | just grows, useless | |
Sow thistle | takes 3 attempts to spread somewhere | |
Guarana | once eaten gives +3 strength | |
Deadly nightshade | once eaten, kills |
-
You can SAVE game into file (txt), and then LOAD itno you can't :( do that for now -
There are 2 boxes, that informs you about events (killing, eating, reproducing)
-
You don't need to click 'NextRound' button, just press ENTER
-
MAGIC PEN, hover with mouse at some field. Randomly generated organism would appear.
- use PEP
- update README to markdown
- create normal icons :)
- fix game saving and loading beacuse it doesn't work at all
- adapt to new PEP rules
- delete crappy code, start anew
- maybe use PyGame