Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

06/21/2020 I wanted a bot to generate all the planks, poles, and fixing pegs I would need to create a Mk2000 bot. I run the following code using an Mk2000 with Good Bot Power and Good Bot Brain upgrades:

Times: 1 (I included this in case I want to create multiple bots)
  Times: 12
   Times: 2
     Move to Log Store
     Take from Log Store
   Until hands empty
     Move to MF.Saw Planks
     Add to MF.Saw Planksa
  Times: 3
    Times: 7
      Find nearest Plank in (MF.Saw Planks)
      Move to Plank
      Pick up Plank
   Until hands empty
     Move to MF.Saw Poles
     Add to MF.Saw Poles
  Times: 3
    Times: 7
      Find nearest Pole in (MF.Saw Poles)
      Move to Pole
      Pick up Pole
  Until hands empty
     Move to MF.Saw F.Pegs
     Add to MF.Saw F.Pegs
Expected Results:
  Planks = 2 Planks/Log*12*2 = 48 Planks - 3*7 Planks2Poles = 27 Planks (more than what is needed for one Mk2000 bot)
  Poles = 2 Poles/Plank*3*7 = 42 - 3*7 Poles2F.Pegs = 21 Poles
  F.Pegs = 2 F.Peg/Pole*3*7 = 42 Pegs
Results Achieved:
  Planks = 13
  Poles = 19
  F.Pegs = 42

I ran different sections independently of others and, sometimes, more than once:
Times: 1
  Times: 12
   Times: 2
     Move to Log Store
     Take from Log Store
   Until hands empty
     Move to MF.Saw Planks
     Add to MF.Saw Planks
Expected v Results Achieved:
Planks = 48 v 37 (1st attempt... may have been a fluke), 48 (2nd attempt)

Times: 1
  Times: 3
    Times: 7
      Find nearest Plank in (MF.Saw Planks)
      Move to Plank
      Pick up Plank
   Until hands empty
     Move to MF.Saw Poles
     Add to MF.Saw Poles
Expected v Results Achieved:
Planks starting at 48, ending at 27
Poles = 42 v 42

It seems to do fine when I simplify the code/run each section separately then has issues when they are all combined. I believe this is an issue in the game but it could be something I've done incorrectly.