Michał Czekański
43b654a6a5
Add static method printing decision tree
2020-05-21 17:01:27 +02:00
Michał Czekański
44419b5f28
Add method making decision in DecisionTree class
...
This method takes an instance of DecisionTreeExample and returns what it "decided".
2020-05-21 17:00:59 +02:00
Michał Czekański
9d1299b162
Add method adding branch to decision tree
2020-05-21 16:58:28 +02:00
Michał Czekański
fd54303dba
Change type of branch field in DecisionTree class
...
Type was Any, now it is DecisionTreeBranch.
2020-05-21 16:57:33 +02:00
Michał Czekański
a3d47b4320
Add DecisionTreeBranch class
2020-05-21 16:56:20 +02:00
Michał Czekański
fbd76f31e7
Add DecisionTree class with just init
2020-05-21 16:56:01 +02:00
Michał Czekański
bdba45de08
Add DecisionTreeExample class
...
This class will be used in decision trees.
2020-05-21 16:52:48 +02:00
Michał Czekański
ad791a299e
Add Attribute class
...
This class will be used in decision trees.
2020-05-21 16:50:46 +02:00
Michał Czekański
38ce217db4
Add AttributeDefinition class
...
This class will be used in decision trees.
2020-05-21 16:50:07 +02:00
a0da920e39
Changed seed
2020-05-18 14:58:44 +02:00
b20ac9c356
Removed stepCount (bugged)
2020-05-18 14:58:31 +02:00
ded03f5a3b
Removed redundant import
2020-05-18 14:29:39 +02:00
3e4f10236d
Removed redundant pickWeightedAffinity function
2020-05-18 14:29:26 +02:00
dc5dc756cb
Removed randomness from entity picking
2020-05-18 14:28:48 +02:00
f1d616576c
Added optional file log out
2020-05-17 11:56:06 +02:00
04370fb98c
Added docstrings
2020-05-17 11:22:38 +02:00
96cf823619
Added missing docstrings
2020-05-17 11:22:27 +02:00
df16339eef
Changed log paths
2020-05-17 11:17:08 +02:00
aa3eea8b39
Added resultsExplorer.py
2020-05-17 11:15:54 +02:00
1aacc693b9
Fixed Raw logging
2020-05-17 10:34:36 +02:00
3108343513
Logging changes
2020-05-17 10:25:10 +02:00
b6312df9f3
Changed formulas back to original
2020-05-17 10:16:56 +02:00
3b294030f4
Fixed movement when moveTimeout is zero
2020-05-17 01:30:38 +02:00
d9a4750f7d
Added random seed
2020-05-17 01:29:20 +02:00
ada3564713
Fixed issue with targets forwards to player
2020-05-17 01:02:07 +02:00
d1b6027ffa
Fixed fitness logging
2020-05-17 00:46:33 +02:00
eed7d2ea82
Added GA iteration run param
2020-05-17 00:43:24 +02:00
0225eda1eb
Added file logging
2020-05-17 00:38:36 +02:00
7c6cc737e1
Added execution parameters
2020-05-17 00:27:53 +02:00
4b75bebf5a
Added more debug keybindings
2020-05-17 00:16:20 +02:00
2afbcdaff8
Removed A* debug text
2020-05-17 00:15:56 +02:00
584d371ec1
Optimized map respawn method
2020-05-17 00:14:42 +02:00
dcc8da6d2a
Changed fatigue
2020-05-17 00:14:23 +02:00
92490789ea
Improved multithreading
2020-05-17 00:14:10 +02:00
6725c4ae0c
Weighted entity picks are now seeded
2020-05-16 22:50:56 +02:00
8c2a3f2bff
Fixed bug, where the game would crash if there are no pikcupable entities left
2020-05-16 22:36:42 +02:00
1c8b21bf2c
Changed fatigue
2020-05-16 16:23:49 +02:00
05898f5b8b
Added __del__ method
2020-05-16 16:23:31 +02:00
052d8ca7ce
pre-alpha multithreading
2020-05-16 16:22:53 +02:00
de3a0569a9
Added GA gamemode
2020-05-16 15:39:53 +02:00
66ac27a6fe
Bugfixes
2020-05-16 14:46:02 +02:00
ac6a7df4fe
Added mutation
2020-05-16 14:21:09 +02:00
e8e36a4420
Added more info printing
2020-05-16 14:13:46 +02:00
625b6956c9
Added mating
2020-05-16 14:10:18 +02:00
f56eedb657
Added mating pool selection function
2020-05-16 13:51:09 +02:00
b89822a658
Added TODO
2020-05-16 13:01:11 +02:00
9484a05dd5
Added walking affinity weight
2020-05-16 12:54:21 +02:00
30e1db94bf
First steps in GA
2020-05-16 12:54:04 +02:00
264aa2969c
Added respawn method
2020-05-16 12:47:40 +02:00
a45be130e6
Added disableMovementTime method
2020-05-16 12:36:37 +02:00
7877cbb239
Added missing affinity to the player's init
2020-05-16 12:14:16 +02:00
5e1e089015
getInteractablesByClassifier's classifier param is now optional
2020-05-16 11:41:51 +02:00
6ec1c0b2d2
Game class revamp
2020-05-16 11:13:36 +02:00
15babde728
buffed fatigue
2020-05-16 11:01:01 +02:00
233ce2462c
fixed movePoints
2020-05-16 10:59:46 +02:00
5d060ae8a4
Fixed return type
2020-05-16 10:54:31 +02:00
25372c2f34
Added tooltip to affinities
2020-05-16 10:44:34 +02:00
b6893379cf
added getInteractablesByClassifier method
2020-05-16 10:44:19 +02:00
74093de1d3
Added weighted choice function
2020-05-16 10:44:01 +02:00
b61ffc008b
Now uses classifier enum instead of stings
2020-05-16 10:21:37 +02:00
a0c315a600
Added Classifiers enum
2020-05-16 10:21:23 +02:00
64c9a4979c
Added newline at the end of the file
2020-05-16 10:07:46 +02:00
fce8eea181
Player may now have affinities to entity types
2020-05-16 10:07:35 +02:00
8cad7be0a5
Added affinities container
2020-05-16 10:05:42 +02:00
2318000476
Added type fields to entities from JSON
2020-05-16 10:02:01 +02:00
454e0ac87d
__str__ prints classifiers
2020-05-16 10:01:47 +02:00
fa1fe48abb
Added __str__ method
2020-05-16 09:59:53 +02:00
90746c51d9
Added missing param hint in docstring
2020-05-16 09:51:04 +02:00
215dd876f7
Added classifier param to the constructor
2020-05-16 09:50:10 +02:00
8c3bdc3726
Interactable entities now have classification field
2020-05-16 09:48:42 +02:00
Michał Czekański
d38b2ff7d5
Use new printToConsole method in Ui class
2020-05-15 23:24:21 +02:00
Michał Czekański
d26703da5b
Add comments in Ui.py
2020-05-15 23:24:21 +02:00
Michał Czekański
6832d41990
Add comments in UiText.py
2020-05-15 23:24:21 +02:00
Michał Czekański
b15382d9bc
Add scroll up and down method in UiConsole class
2020-05-15 23:24:21 +02:00
Michał Czekański
76de35bc3d
Add update method, static buffer, static printing to console method
...
Added static buffer in UiConsole class which stores lines to print. Even if there is no UiConsole object instantiated (cos it's static).
Everything from buffer is being printed on update() calls, update is called every frame.
To add lines to buffer use static printToConsole() method.
2020-05-15 23:24:21 +02:00
Michał Czekański
4e828de1c7
Add type hints for fields and method parameters in UiConsole
2020-05-15 23:24:21 +02:00
Michał Czekański
22355dc960
Add comments to all methods in UiConsole class
2020-05-15 23:24:21 +02:00
Michał Czekański
2cebcd3be6
Fix writeToConsole method
...
This method was adding given string to the console's list of lines, but wasn't displaying this given string.
User had to perform scroll to display this new string.
2020-05-15 23:24:21 +02:00
Michał Czekański
86394ef71b
Add method writing to console
2020-05-15 23:24:21 +02:00
Michał Czekański
7d71333558
Add comments in UiButton.py
2020-05-15 23:24:21 +02:00
Michał Czekański
aab779d4e1
Add comments in UiImage.py
2020-05-15 23:24:21 +02:00
Michał Czekański
08643c7083
Remove unnecessary field in UiBar class
2020-05-15 23:24:21 +02:00
Michał Czekański
9d1ecf5d90
Add comments in UiBar.py
2020-05-15 23:24:21 +02:00
Michał Czekański
bb46f56ace
Add comments in UiElement.py
2020-05-15 23:24:21 +02:00
8df63bb607
Stamina loss is quicker
2020-05-15 16:59:02 +02:00
d45daadc60
Player may now die out of exhaustion
2020-05-15 08:58:07 +02:00
492f37bda5
Pressing 'u' now selects random interactable entity
2020-05-15 08:54:49 +02:00
a40a598ffe
Added getEntitiesByType method
2020-05-15 08:54:21 +02:00
dae94576e7
Fixed debug text
2020-05-15 08:54:05 +02:00
4fff56bd7d
Better debug output
2020-05-15 08:52:06 +02:00
569128763b
Entities list is now a pygame.sprite.Group
2020-05-14 16:33:35 +02:00
fad3d68b55
getFacingCoord screenRelative now defaults to false
2020-05-14 16:30:10 +02:00
3924023a92
Documentation fixes
2020-05-14 16:24:59 +02:00
c806d99d49
Changed tooltip from except to raises
2020-05-14 16:18:29 +02:00
085446ea93
Added more documentation
2020-05-14 16:16:19 +02:00
1610f9c0da
Fixed imports
2020-05-14 14:54:11 +02:00
844397191a
Added tooltips to getCoords and SetCoords
2020-05-14 12:56:33 +02:00
fed30b0ade
Added tooltips
2020-05-14 12:44:27 +02:00
cc98db0a96
Methods now use relative coords
2020-05-14 12:39:09 +02:00
776be8fb90
A* uses relative coords
2020-05-14 12:38:48 +02:00