Commit Graph

11 Commits

Author SHA1 Message Date
Chris Cromer 6c2665b1c5 Reimplement singleton classes and update copyrights
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-26 19:12:21 -03:00
Chris Cromer cb7fe3767d Improve the AI some more
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 18:49:28 -03:00
Chris Cromer 4067055af4 Switch to a concurrent matrix for the cells
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 18:04:08 -03:00
Chris Cromer 8c627bda8c Make the AI more robust
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 17:35:11 -03:00
Chris Cromer 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
Chris Cromer 5b8e36876c Don't deactivate the portal if a gem wasn't purified
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-14 09:26:14 -03:00
Chris Cromer 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
Chris Cromer 000a5e1fde Cleanup code
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-11 14:08:22 -03:00
Chris Cromer 81432f3243 Optimize imports
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-11 12:54:42 -03:00
Chris Cromer dbb524a7c7 Sort the destinations from the start
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-11 12:33:13 -03:00
Chris Cromer 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