b4213e81c5
Change variable name style to reflect that it is a constant
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-29 11:46:34 -03:00
49789f6df3
Revert player to A* AI and make enemy just a tiny bit slower to prevent deadlocks
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-26 21:24:23 -03:00
1185f7938a
Fix typo
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-26 19:45:43 -03:00
6c2665b1c5
Reimplement singleton classes and update copyrights
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-26 19:12:21 -03:00
18a04d2d07
Fix raw class types
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-25 20:42:42 -03:00
1918a08a8a
Increase grid size to 20x10
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-12 20:45:36 -03:00
bbf10d7c95
Implement more types of heuristics
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 20:50:41 -03:00
38bf713562
Remove sort destinations from AI class
...
Change enemy to 600ms sleep
Change chest number back to 2
Turn lock back on for enemies
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 20:23:31 -03:00
5510f132b7
If the player location is not known yet during sort, find it. This only happens when the loop has not been run yet.
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 19:14:08 -03:00
cb7fe3767d
Improve the AI some more
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 18:49:28 -03:00
cbcb6d0d01
Implement A* Search
...
Many changes to improve AI usage
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-17 12:27:17 -03:00
00c54e5e15
Update gradle build file to ignore false positive warnings
...
Move shared functionality into the SearchAI class
Move shared functionality into the Object class
Add new state enum types
Implement enemy AI
Make player get the gem right away
Fix keyListener still listening after winning or game over
Reduce obstacles to 5%
Make sure all objectives can be reached by player
Make sure all enemies can reach player
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-13 21:10:16 -03:00
81432f3243
Optimize imports
...
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-11 12:54:42 -03:00
f7adc8551e
Remove spanish class names
...
Implement restart
Make sure all objectives are reachable
Optimize code
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-10 23:06:16 -03:00