Codecombat The Final Kithmaze

You can check out code combat here: If you enjoyed this video please Like, Comment. Need help getting started in Code Combat? This video shows you step-by-step how to beat this level from.

Kithgard Dungeons Solutions (Javascript). https://codecombat.com/play/dungeon
Kithgard Dungeons Solutions.js
//1-(Dungeons of Kithgard)
this.moveRight();this.moveDown();this.moveRight();
//2-(Gems in the Deep)
this.moveRight();this.moveDown();this.moveUp();this.moveUp();this.moveRight();
//3-(Shadow guard)
this.moveRight();this.moveUp();this.moveRight();this.moveDown();this.moveRight();
//4-(Forgetful Gemsmith)
this.moveRight();this.moveUp();this.moveRight();this.moveRight();this.moveDown();this.moveDown();this.moveUp();this.moveRight();
//5-(True Names)
this.moveRight();this.attack('Brak');this.attack('Brak');this.moveRight();this.attack('Treg');this.attack('Treg');this.moveRight();this.moveRight();
//6-(The Raised Sword)
this.attack('Rig');this.attack('Rig');this.attack('Gurt');this.attack('Gurt');this.attack('Ack');this.attack('Ack');
//7-(Kithgard Librarian)
this.moveRight();this.say('Hush');this.moveRight();
//8-(Fire Dancing)
while(true){this.moveRight();this.moveLeft();}
//9-(Loop Da Loop)
while(true){this.moveRight();this.moveUp();this.moveLeft();this.moveDown();}
//10-(Haunted Kithmaze)
while(true){this.moveRight();this.moveRight();this.moveUp();this.moveUp();}
//11-(The Second Kithmaze)
while(true){this.moveRight();this.moveUp();this.moveRight();this.moveDown();}
//12-(Dread Door)
while(true){this.attack('Door');}
//13-(Known Enemy)
this.attack('Kratt');this.attack('Kratt');this.attack('Gert');this.attack('Gert');this.attack('Ursa');this.attack('Ursa');
//14-(Master of Names)
vare=this.findNearestEnemy();this.attack(e);this.attack(e);e=this.findNearestEnemy();this.attack(e);this.attack(e);e=this.findNearestEnemy();this.attack(e);this.attack(e);
//15-(Lowly Kithmen)
vare=this.findNearestEnemy();this.attack(e);this.attack(e);e=this.findNearestEnemy();this.attack(e);this.attack(e);this.moveDown();this.moveRight();this.moveRight();
//16-(Closing the Distance)
this.moveRight();vare=this.findNearestEnemy();this.attack(e);this.attack(e);this.moveRight();e=this.findNearestEnemy();this.attack(e);this.moveRight();this.moveRight();
//17-(A Mayhem of Munchkins)
while(true){this.attack(this.findNearestEnemy());}
//18-(The final Kithmaze)
while(true){this.moveRight();this.moveUp();this.attack(this.findNearestEnemy());this.attack(this.findNearestEnemy());this.moveRight();this.moveDown();this.moveDown();this.moveUp();}
//19-(Kithgard Gates)
this.moveDown();this.buildXY('fence',36,34);this.buildXY('fence',36,30);this.buildXY('fence',36,26);this.moveRight();this.moveRight();this.moveRight();
//Bonus-(Kithgard Mastery)
//The level is randomly generated, please change the text of variables 'pass' and 'm'.
varme=this;
varen=this.findNearestEnemy();
//pass - Password
varpass='Friend';
functionMoveChar(char){
switch(char){
case'a': me.moveLeft();break;
case'w': me.moveUp();break;
case's': me.moveDown();break;
case'd': me.moveRight();break;
case'p': me.say(pass);break;
case'A': if(en!null){me.attack(en);}break;
case'S': me.shield();break;
}
}
//awsd - Movement.
//p - Say password to unlock the door.
//A - Attack nearest enemy.
//S - Shield
varm='wdddwsdpddwwwSAAaaaaww';
while(true){
for(vari=0;i<m.length;i++){
en=this.findNearestEnemy();
MoveChar(m[i]);
}
}
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Welcome to LearnProgramming! Asking debugging questionsIf you need help debugging, you must include:. A.

Codecombat the final kithmaze

A of the problem. A, and program that illustrates your problem. The output you expected, and what you got instead. If you got an error, include the full error message.See for more info. Asking conceptual questionsMany conceptual questions have already been asked and answered. Read our and search old posts before asking your question. If your question is similar to one in the FAQ, explain how it's different.See for more info.

Other guidelines and links.Subreddit rules 1. No unprofessional/derogatory speech.Follow: behave professionally and civilly at all times. Communicate to others the same way you would at your workplace. Disagreement and technical critiques are ok, but personal attacks are not.Abusive, racist, or derogatory comments are absolutely not tolerated.See our for more details.2. No spam or tasteless self-promotion.When posting some resource or tutorial you've made, you must follow our.In short, your posting history should not be predominantly self-promotional and your resource should be high-quality and complete. Your post should not 'feel spammy'.Distinguishing between tasteless and tasteful self-promotion is inherently subjective. When in doubt, message the mods and ask them to review your post.Self promotion from first time posters without prior participation in the subreddit is explicitly forbidden.3.

No off-topic posts.Do not post questions that are completely unrelated to programming, software engineering, and related fields. Tech support, hardware recommendation and favorite IDE questions count as 'completely unrelated'.Questions that straddle the line between learning programming and learning other tech topics are ok: we don't expect beginners to know how exactly to categorize their question.See our for more details.4. Do not ask exact duplicates of FAQ questions.Do not post questions that are an exact duplicate of something already answered in the.If your question is similar to an existing FAQ question, you MUST cite which part of the FAQ you looked at and what exactly you want clarification on.5. Do not delete posts.Do not delete your post!

Your problem may be solved, but others who have similar problems in the future could benefit from the solution/discussion in the thread.Use the 'solved' flair instead.6. No app/website review requests / app/website showcases.Do not request reviews for some random app or website you've written or promote your app/site. This is a subreddit for learning programming, not a 'critique my project' or 'advertise my project' subreddit.Asking for code reviews is ok as long as you. In short, link to only your code and be specific about what you want feedback on.

Echochrome ii. Do not include a link to a final product or to a demo in your post.7. No rewards.You may not ask for or offer payment of any kind (monetary or otherwise) when giving or receiving help.In particular, it is not appropriate to offer a reward, bounty, or bribe to try and expedite answers to your question, nor is it appropriate to offer to pay somebody to do your work or homework for you.8. No indirect links.All links must link directly to the destination page. Do not use URL shorteners, referral links or click-trackers. Do not link to some intermediary page that contains mostly only a link to the actual page and no additional value.For example, linking to some tweet or some half-hearted blog post which links to the page is not ok; but linking to a tweet with interesting replies or to a blog post that does some extra analysis is.Udemy coupon links are ok: the discount adds 'additional value'.9.

Do not promote illegal or unethical practices.Do not ask for help doing anything illegal or unethical. Do not suggest or help somebody do something illegal or unethical.This includes piracy: asking for or posting links to pirated material is strictly forbidden and can result in an instant and permanent ban.10. No complete solutions.Do not ask for or post a complete solution to a problem.When working on a problem, try solving it on your own first and ask for help on specific parts you're stuck with.If you're helping someone, focus on helping OP make forward progress: link to docs, unblock misconceptions, give examples, teach general techniques, ask leading questions, give hints, but no direct solutions.See our for more details. Mmm, it looks like it'll teach you the basics. Regardless of how good it is or not, you're still probably going to have to do additional learning after the course is over - the contains links to many good resources.From a pedagogical standpoint, after looking at their (minimal) syllabus, it looks like they take an objects-first approach to teaching programming.

I'm not sure if I agree on whether or not teaching programming that way is the best idea, but I do know it is a popular way to teach programming to absolute beginners/children, for what it's worth. You could try.It is much more advanced though. You won't learn to code, you will learn to design algorithms.

But there are forums, and little hints, to help you get to a solution (emphasizing on the 'a' solution, because you can find multiple solutions for the same problem, and that's what is nice: once you have found a solution, you can work to get a better code, you can try to write it in another language, and the site supports a lot).Why I think is great is because I know that every time I learn a new language, I feel like dropping out once I get to the advanced stuff. Doing little exercises like that can help keeping you motivated!.