Commit Graph

117 Commits

Author SHA1 Message Date
matixezor
4fae45b696 add node cost and add lt comparator, adjust a_star and helpers to use node.cost, 2021-04-26 13:52:32 +02:00
matixezor
f225f42ba9 fix weight assignment 2021-04-26 13:51:25 +02:00
matixezor
d2106e8ea7 add debug field 2021-04-26 13:50:16 +02:00
matixezor
77afd5cc15 fix some stuff 2021-04-25 22:28:44 +02:00
7e61c61116 improving a_star algorithm 2021-04-25 21:32:43 +02:00
matixezor
b46ebc9b3e add goal type hint 2021-04-25 17:14:07 +02:00
matixezor
f777afba56 change project structure, add a* template 2021-04-25 17:10:12 +02:00
matixezor
1de3c78fd3 fix bfs 2021-04-24 20:01:45 +02:00
matixezor
8e9af8f0b3 fix directions constants 2021-04-12 19:05:04 +02:00
matixezor
f0359f53c8 add slight delay between moves 2021-04-12 18:53:41 +02:00
matixezor
39d7f0a827 change logging msg 2021-04-12 18:53:25 +02:00
matixezor
90e11febc5 add basic console logging, fix rotating 2021-04-12 18:50:52 +02:00
matixezor
995dd6860e changed bfs to start at top neighbour and proceed against the clock 2021-04-12 18:50:22 +02:00
matixezor
5ac5fd9aea fix queue events 2021-04-12 16:49:43 +02:00
Darek Golomski
6d34b95f8f Refactor: Agent defuse mine under him 2021-04-12 16:21:34 +02:00
Darek Golomski
de75ae3122 Agent defuse mine under him 2021-04-12 16:10:14 +02:00
Darek Golomski
63645f3b24 Repair agent 2021-04-12 16:02:10 +02:00
matixezor
27cf66d35d add actions, directions to node. add mine_count to env 2021-04-12 10:51:33 +02:00
matixezor
a7fb859e32 fix type hint for field 2021-04-10 15:39:46 +02:00
matixezor
cecdc84657 code refactor 2021-04-10 14:13:36 +02:00
matixezor
be6481745a implement successor and bfs 2021-04-10 12:12:06 +02:00
matixezor
a1938e5683 add node class 2021-04-10 12:11:43 +02:00
matixezor
5c5e301d6e add bfs launch on T key pressed 2021-04-10 12:11:14 +02:00
matixezor
ab447f4594 add constants for BFS 2021-04-10 12:10:51 +02:00
matixezor
9123ccf3f9 fix going offscren with W key, code refactor 2021-04-09 22:32:08 +02:00
matixezor
30b8fc3fae code refactor 2021-04-09 22:31:39 +02:00
5f1780bc2f Merge pull request 'Scal SuperSaperTestowy' (#1) from SuperSaperTestowy into master
Reviewed-on: #1
2021-04-09 21:24:02 +02:00
227a246968 add impassable terrain 2021-04-09 19:48:59 +02:00
edb56dac1d Change image on rotate 2021-04-09 19:11:33 +02:00
Darek Golomski
1900954708 add agent rotate image 2021-04-09 18:47:12 +02:00
Darek Golomski
3d8ff6222c add comment to agent move 2021-04-09 18:37:42 +02:00
Darek Golomski
fc4895fc4e add agent rotate 2021-04-09 18:31:38 +02:00
0b2b68ca3c changed agent image and merged branches 2021-04-09 18:13:13 +02:00
71b310ad4c changed agent image 2021-04-09 18:08:16 +02:00
51f912f22d added the best name B) 2021-03-30 19:12:14 +02:00
matixezor
631a0d32e5 adjust to changes in env, const and field 2021-03-30 18:50:07 +02:00
matixezor
e84a93580e rename field to tile 2021-03-30 18:49:26 +02:00
matixezor
d6caa9aad9 rename field to tile, add mine attr, adjust factory to new attr 2021-03-30 18:49:11 +02:00
matixezor
cc79adb81a add default val to is_armed 2021-03-30 18:47:02 +02:00
matixezor
bd753f3e06 add inheritance to constructor, add const defuse_method 2021-03-30 18:46:19 +02:00
matixezor
9fd954c79b add Image cls, change IMAGES const to hold Image objects 2021-03-30 18:44:16 +02:00
matixezor
f5cd0670cc rename imgs 2021-03-30 18:42:55 +02:00
matixezor
7a39af0081 code refactor 2021-03-30 11:47:30 +02:00
matixezor
85993ddec5 fix moving off screen when using 'wasd' 2021-03-30 11:45:20 +02:00
2513f49fdc add arrow keys operation and mine classes 2021-03-29 18:26:40 +02:00
bdddb68e90 code cleaning 2021-03-27 18:30:45 +01:00
f860b1ce45 created Field class and fieldsFactory 2021-03-27 18:27:45 +01:00
matixezor
b8d1370438 Merge remote-tracking branch 'origin/master' 2021-03-16 23:16:11 +01:00
matixezor
f6e452f5e3 code refactor 2021-03-16 23:15:41 +01:00
f0d262bc59 Usuń 'git' 2021-03-16 20:56:00 +01:00