summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2020-10-25 19:35:50 +0100
committerjonsykkel <jonrevold@gmail.com>2020-10-25 19:35:50 +0100
commitc9ca24e0ee5d70e026c86fe72885ad31d30f7250 (patch)
treed373c92b60966748fb426eb8d504376f17a0e211
parentf4871a1af2da53589fc49207cca86bb6ad269bad (diff)
downloadmindustry_solver-c9ca24e0ee5d70e026c86fe72885ad31d30f7250.tar.gz
ok
-rw-r--r--src/main.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/main.c b/src/main.c
index face5f8..71c1ea7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -280,22 +280,18 @@ int main(int argc,char **argv){
" oooooooooo "
" ooooo ");
- /*
- map_alloc(&map,12,12, " "
- " oooooooooo "
- " oooooooooo "
- " oooooooooo "
- " oooooooooo "
- " oooooooooo "
- " oooooooooo "
- " oooooooooo "
- " oooooooooo "
- " oooooooooo "
- " oooooooooo "
- " ");
- */
-
- while(map_drill_auto(&map,2));
+ map_alloc(&map,10,10, "oooooooooo"
+ "oooooooooo"
+ "oooooooooo"
+ "oooooooooo"
+ "oooooooooo"
+ "oooooooooo"
+ "oooooooooo"
+ "oooooooooo"
+ "oooooooooo"
+ "oooooooooo");
+
+ while(map_drill_auto(&map,3));
map_print(&map);
printf("drils total %zu\n",map.drill_cnt);
printf("ore total %zu\n",map.ore_cnt);