ByteLegend Walkthrough Part I

During the past whole year, I was learning CS courses at OSU. However, I have never touched Java before. Therefore, I decide to learn Java and I am using to do so.

ByteLegend is an open source software project on GitHub: github link. It is a free HTML5 MMORPG game where players can learn real world programming knowledges and skills in Java. I found it half a year ago, saved the website link as a bookmark, and was hoping to play it someday to self learn Java.

While learning a new programming language through it, I am also trying to contribute to this OSS project as a game data contributor so that I could improve my skills in using Git.

Also, for some starters like myself, I decide to generalize a RPG game walkthrough in this blog.

There are 255 stars to be earned to get all the achievements. I will try my best to finish all of them by Christmas.

Walkthrough of ByteLedend

Java Island (Newbie Village and Foo Bar)

  1. Sign up with Github account
  2. Turn on/off music and choose your preferred language on the right up corner
  3. On the left up corner, you can see your mouse coordinator
  4. Click the book to see tutorials
  5. (1 star) First star: Star the project:
  6. Enter the Foo Bar by clicking on the door
  7. (2 stars) Second star: install JDK on your laptop, then put “java -version” in your terminal shell, copy paste the output into the input box.
  8. Talk to the old man at the village gate and hand him the java/coffee.
  9. (5 stars) Click on the Request board to learn about GitHub Pull Request. Your action would be recorded in By completion of this task, you will earn 3 stars. Now you should have 5 stars.
  10. (6 stars) Install an IDE, I personally recommend IntelliJ IDEA Community Edition: Then copy the “about” content into the input box. This will award you one star and one key to open the chest for 100 coins
  11. If you go up, the soldier will ask you to wear a Git Amulet to pass. Therefore, you have to go to the star face NPC, pay 50 coins to go to Git Island.

Git Island

  1. (7 stars) Welcome to Git Island! Click on the chest and install Git. Type “git -v” to find your git version and copy paste that output into the input box to earn your seventh star and a chest key.
  2. Use the chest key to open the chest. Now you have got the Git Amulet.
  3. You shall not pass for now. So go back to Java Island. Yes, you have to pay the star face 50 coins again.

Java Island (Java Basic Structure)

  1. Click on the gate to learn how to clone and run a Java program.
  2. Open your shell. Create a new folder, name it whatever you want. I named it ByteLegend. In your shell cd to this folder.
  3. Type “git clone” to clone the project in the new folder.
  4. Open the pom.xml with your IDE, choose “Open as Project”, and then choose “trust the project”.
  5. Find the file under src/main/java/com/bytelegend.
  6. (8 stars) Click the run button next to line 7. You will see Base64 Encoding String in your window. Copy and paste that string into the input box to earn your eighth star and a door key for the gate.
  7. Click on the second gate to learn how to switch branch and run with a different JDK.
  8. In your IDEA, click the “main” at the right bottom corner and then choose origin/jdk17, and then click on “Checkout”. Wait for the project to sync and now you are in brank jdk17.
  9. (9 stars) Click the run button next to line 7. You will see another Base64 Encoding String in your window. Copy and paste that string into the input box to earn your ninth star and a door key for the second gate.
  10. (10 stars) Click on the bug to start this challenge. Open the “this simple Java program”, change the sign and then click on “Submit Answer” and then wait for a while to earn your tenth star and a knife to kill the bug. For beginners, I highly recommend you to follow the suggestions to practice this on your local IDE but it is not required. 
  11. (13 stars) For the following three challenges, you can do them in either sequence you want. This is for “Create a New Class”: In the online editor, open the file and create a public class called Cat. Notice: if there is a style issue, like no new line at the end, you will only get 2 stars. Cheat:
  12. (16 stars) This is for “Import Class” Challenge 1: In the online editor, open the and add the import statements. Tip: be careful of typos. Cheat:
  13. (19 stars) This is for “Import Class” Challenge 2: Modify the code in Cheat:
  14. (22 stars) This is for “Import Class from 3rd Party Package”. This is a hard challenge, it is OK you do not understand it for now, please check here for the answer:
  15. Now you should have three Gold Swords, use them to destroy the three towers to eliminate the alien.
  16. (Side Quest) Enter Dungeon: Comment & Javadoc.
  17. (25 stars) Comment. Change the comment from single line comments into multi-lines comments and multi-lines comments into single line comments. Open the chest for 100 coins.
  18. (28 stars) JavaDoc Challenge 1. Learn JavaDoc style, open the doc, and edit the author part. This is an easy but IMPORTANT challenge to accomplish. 
  19. (31 stars) JavaDoc Challenge 2. Correct this JavaDoc. There is an obvious error. However, this is not a good challenge, for the other errors which are meant to be tricky. Please check the answer:
  20. With the chest key, get another 100 coins.
  21. (34 stars) Java Methods Challenge 1. Learn what is a public static void method.
  22. (37 stars) Java Methods Challenge 2. Learn about data types.
  23. Destroy the defense tower with the gold sword.
  24. (38 stars) Method Overload. This is a challenging and rewarding challenge. Tip: do not make your method private like it should be. Cheat:
  25. (40 stars) My personal beautiful solution above will only give you one star. To get three stars, pay attention to the coding style, you need this solution:

To be continued…

Part II:

Print Friendly, PDF & Email

Leave a Reply

Your email address will not be published. Required fields are marked *