This guide has all the code solutions for level 4 to ????

Introduction

About myself:
I’m a self taught developer who likes optimizing code

About this guide:
First off if you’re new to coding i highly recommend you to give it a try it’s so fun and easy.
so I honestly made this guide to save my own code for the coding mini game,
this guide will have codes for levels from 4 to ???? above each level i’ll also write what functions are needed to run the code

Notes:
I hate JavaScript <3
All the levels require that you have 3 functions: MoveForward(), TurnRight(), DoNothing()
so I’ll only write the additional functions that i didn’t mention here

Level 4

Additional Functions needed:
None

Note:
you can change the number in the while loop to how much coins you need

Code:

// to get to our initial point
 Turn(2)
 Move(2)
 
 // coins we collected so far
 var coins = 0;
 // we need 35 to buy the key
 while(coins < 35)
 {
 // go throught the maze
 Move(8)
 Turn(3)
 Move(3)
 Turn(3)
 Move(8)
 
 // collect the coins
 Wait(5)
 coins+=5;
 
 // return to the initial position
 Turn(3)
 Move(3)
 Turn(3)
 }
 
 // functions to simplify my life
 function Move(x){
 for (let i = 0; i < x; i++) {
 MoveForward()
 }
 }
 
 function Turn(x){
 for (let i = 0; i < x; i++) {
 TurnRight()
 }
 }
 
 function Wait(x){
 for (let i = 0; i < x; i++) {
 DoNothing()
 }
 }

Level 5

Additional Functions needed:
None

Note:
this code will take too long to execute if you want to buy everything

Code:

// get to the initial position
 Turn(3)
 Move(1)
 Turn(1)
 Move(4)
 
 // current amount coins held
 var coins = 0;
 
 // start the grind
 while(coins < 250)
 {
 Turn(1)
 Move(4)
 Turn(1)
 Move(3)
 Turn(3)
 Move(1)
 Turn(1)
 Move(7)
 Turn(3)
 Move(2)
 Turn(2)
 Move(7)
 Turn(1)
 
 // got to the bank and deposit your money
 Move(4)
 Wait(5)
 coins += 5
 
 // back to where we started
 Move(6)
 }
 
 // functions to simplify my life
 function Move(x){
 for (let i = 0; i < x; i++) {
 MoveForward()
 }
 }
 
 function Turn(x){
 for (let i = 0; i < x; i++) {
 TurnRight()
 }
 }
 
 function Wait(x){
 for (let i = 0; i < x; i++) {
 DoNothing()
 }
 }

Thanks to cabiste for his excellent guide, all credit to his effort. if this guide helps you, please support and rate it via Steam Community. enjoy the game.

Related Posts:

  • Outcore: Solutions for Idle Game
  • Outcore: How to Reset the Game (Deleting the Save)
  • Outcore: The Last File Section Guide

About Robins Chew

I'm Robins, who love to play the mobile games from Google Play, I will share the gift codes in this website, if you also love mobile games, come play with me. Besides, I will also play some video games relresed from Steam.

Contact me Via X