ByteLegend Walkthrough Part III

Welcome to part 3 of this walkthrough!

We have conquered Method and Field in Java Island in the last part.

Now we are halfway to the end of Class and Object. Let’s go!

Java Island (Class and Object)

  1. (87 stars) NullPointerException Challenge 1. Hint: fix createNewCat(). Reading recommendation: 
  2. (90 stars) NullPointerException Challenge 2. Hint: fix createNewCat().
  3. (93 stars) Reference and Value Challenge 1. Reading recommendation: 
  4. (96 stars) Reference and Value Challenge 2. Hint: check all three files to find the logic behind how values are passing via the references. 
  5. (99 stars) Reference and Value Challenge 3. Time to learn deep copy: 

Congratulations! You have finished Class and Object. Let’s keep exploring this island!

Java Island (Data Structure)

  1. (102 stars) Data Representation Challenge 1. Time to learn data types: 

This is a sneaky question, don’t waste too much time on it. Answer: 

  1. (105 stars) Data Representation Challenge 2. Time to learn type casting/conversion: 
  2. (108 stars) Data Representation Challenge 3. To save you some time, try this precision: return Math.abs(a – b) <= 1e-10;

Reading Recommendations: 

  1. (111 stars) Type Conversion and Promotion Challenge 1. Hint: Revisit the readings in Data Representation Challenge 2. 
  2. (114 stars) Type Conversion and Promotion Challenge 2. There are many different ways, methods, or functions to complete this task. Here is mine for your reference: 
  3. (117 stars) Autoboxing and Unboxing Challenge 1. Hint: add some statement in compare(). Reading Recommendation: 
  4. (120 stars) Autoboxing and Unboxing Challenge 2. Hint: Use Integer.parseInt(a) to change String a to integer; use String.valueOf(num) to change a number into String.
  5. (123 stars) Autoboxing and Unboxing Challenge 3. Hint and Reading Recommendation: 
  6. (126 stars) Java Array Challenge 1. Hint: Use array.length to check the length of the array.
  7. (129 stars) Java Array Challenge 2. Revisit the examples of parseInt and valueOf.
  8. (132 stars) Java Array Challenge 3. Hint and Reading Recommendations:

Congratulations! We have finished Data Structure!

This is the halfway point of this game. Java is not that hard, right?

To be continued…

ByteLegend Walkthrough Part II

Welcome to part 2 of this walkthrough!

For the past month, I was focusing on my capstone project and the rest 3 courses to graduate from my CS degree. Meanwhile, I explored some more tech about Flask in Python and database knowledge.

I am planning to finish this walkthrough in 6 parts, each part would cover about 40 stars. I will try my best to publish the remaining 4 parts before Christmas.

Thanks for your time and patience.

Java Island (Method and Field)

  1. (43 stars) Java Field Challenge 1. Create a Static Field. In this task, you are asking to create a static variable (public static String message = “Hello”;) in to understand what is a static field. For more details, I recommend you to read this:
  2. (46 stars) Java Field Challenge 2. Implement a SWAP function using static variables and then destroy the tower. Hint: create a temporary variable.
  3. (49 stars) Java Method Innovation. Learn the meaning of refactor, find the similarity and solve the puzzle, then destroy the tower. 

Recommended reading:

  1. (52 stars) Local Variable and Scope Challenge 1. Fix the compiling issue. Hint: like C++, declare the variable and then assign it a value. 


  1. (55 stars) Local Variable and Scope Challenge 2. This is an easy but tricky task. Learn how to use constructor and “this” in a class. 

Answer Option 1: 

Answer Option 2:

  1. (56 stars) Now, go to Dungeon: Debugger. It is time to learn how to set a breakpoint to debug! Click on the “Debugger” Chest. Clone the project into your local IDE. Open, then click the space next to line number 29. It is the line to return the result variable. You should see a red dot like in the picture if you are also using IDEA.

Now debug this file by clicking on the bug button in the top bar or find it in the Run dropdown or simply press Ctrl + D and then find the result variable value in the right bottom window. Copy that string and submit it to earn a star. You should get a Chest key to earn 100 golds.

  1. (57 stars) Click on the “Conditional Breakpoint” Chest. Similarly, clone the project and open This time, put a breakpoint at line 20. Then right click the red spot to add the condition. The rest of the steps are the same as the last task.
  2. (60 stars) Method Recursion Challenge 1. Go back to Java Island. It is time to practice some recursion algorithms. Have fun! 


  1. (63 stars) Method Recursion Challenge 2. Fibonacci Question. 

Recommendation Reading: 

Congratulations! You completed the Method and Field Section. Let’s move on!

Java Island (Class and Object)

  1. (66 stars) Class and Object Challenge 1. Learn what a class is in Java. 

Recommended Reading: 

  1. (69 stars) Class and Object Challenge 2. Learn what an object is in Java. Use the sword to destroy the tower.
  2. (72 stars) Instance Field. Hint: Check the file in the pet folder.
  3. (75 stars) Instance Method. Hint: Use “”.
  4. (78 stars) Instance Constructor Challenge 1. Time to learn constructor: 
  5. (81 stars) Instance Constructor Challenge 2. Time to learn overloading constructor: 
  6. (84 stars) Instance Constructor Challenge 3. Hint: According to, you will need to design two overloading constructors in

To be continued…

Part III:

PS: A typo found and reported to the development team:

Game Data Contributor:    English version contains CN chars

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:

Amazon Web Services

In 2022 summer, I did my intern backend prototype project to create personalized functionality for a huge customers database.

The project requires me to parse million to billion level of data and I learned a lot about Amazon Web Services. Therefore, I am planning to introduce you my experience with AWS tools.

From my perspectives, AWS is one of the best cloud platforms offering all kinds of featured cloud services. This cloud service offers features in analytics, application integration, database, developing tools, networking, security, storage, etc. In general, It offers everything.

Even though I believe AWS is the best cloud service, it is not easy to learn and use it. However, the high learning cost is a common issue for all cloud services. Amazon showed some level of effort in the reference doc. But we still need to google our questions and find most of it on

On the other hand, AWS do offer a free tier account. You can create an account at with an email and a credit card (without charge). Most of the services are offered either 12 months free or always free. Some new and fancy services are offered a free trial.

I built a prototype workflow using AWS Step Function, Athena(MySQL), Lambda, and Simple Storage Service(S3 Buckets). I was impressed by AWS Athena because it handles 10 million lines of data in 4 seconds.

Some famous applications or services built with AWS are Netflix, Twitch, LinkedIn, Facebook, etc. Also, we should all remember in the final week of Spring 2022, Canvas was down for couple hours, that was because there were some issues with the AWS data center in east America. Generally, with AWS, we could build all kinds of services that is related to the Internet and it is free and easy to create an AWS account to start learning cloud services.

Welcome to my Capstone Project Blog!

This is Gan Li. This quarter, 2022 fall, is my last quarter at OSU as an online post-bacc CS student. 

  • What got you started with computers or software?

My first bachelor’s degree is from UCLA math department. I was doing Mathematics Olympiad Competition when I was in high school and I was one of the top students in my home province. But studying from Professor Terrance Tao and professor Ciprian Manolescu made me realize that I could never be like them genius. Therefore, I quit studying pure Math and became a Mechanics for U.S. Army. After honorable discharged, I moved to Seattle for my girlfriend, now she is my wife. As you can imagine, my friends in Seattle area gave me great peer pressure, so after couple years of struggling, I decided to change my career to software development.

  • Current job or internship

Just finished a summer internship and got a return offer. I have to say, it is not as easy as the past to get interviews. So I have to admit that I am somehow relieved.

  • Your future career

SDE then SDE II, then Tech Project Manager maybe?

  • Current interests

Exercise to lose some body weights.

  • Journey with OSU

I started 2021 fall. This is my 4th quarter and I am gonna graduate! Although it is a short journey, I am very thankful that OSU post-bacc program opened my mind and provided me the opportunity to start my career in software development industry.

  • Kids, pets, hobbies, sports, games, activities, etc

Me and my wife have a cat, a dog, and a chinchilla. We are 70% indoor and 30% outdoor person. I have hundreds of games on Steam. I also play a lot of Nintendo games. Speaking of sports, I am running for recent couple months. I occasionally go to the range to shoot some bullets, or go to do some indoor rock climbing. I am planning to start archery as my next new sport. 

Here are some pictures of my lovable pets:

I am still thinking about the content of blog posts in the future. Maybe a journey about me reading a coding book, or maybe about me contributing to a open source software, or maybe some other stories.

Please feel free to leave a comment and let me know what you wanna know more about me.

Finally, feel free to keep in touch: Gan’s LinkedIn

Let’s all have a great 2022!