Sheep a Sheep Tech Walkthrough

Recently, “Sheep a Sheep” has become quite popular, but it’s extremely difficult. After playing dozens of rounds over a few days without success, I succumbed to my professional habits and decided to see if there was a technological method to beat it. After finding an effective method, I organized it here to help others achieve a tech-based victory. Principle The principle behind a tech-based victory is quite simple. The game presents two maps each day. The first map is a warm-up and can be completed easily, while the second map is extremely challenging. Therefore, if you can change the second map to be the same as the first, you can achieve victory. ...

September 20, 2022 · 2 min · Zhiya

Cracking the Google Doodle Game

Today seems to be Google’s fifteenth anniversary, and as usual, they have a JS game on their homepage. The game involves hitting a star with a stick (ten attempts), and if you time it right, candies will drop. After various attempts, my highest score was 173. I initially thought this was a high score, but after checking on Weibo, I found that quite a few people scored over 180, and there’s an Easter egg for scores above 180. I couldn’t let this go, so I kept trying but couldn’t surpass 173. Out of options, I decided to approach it programmatically. Since it’s a JS game, theoretically, by modifying the number of attempts, I could increase the score. I went to the Google homepage to find the JS file and easily discovered a file at https://www.google.com.hk/logos/2013/bday13/bday13.js. Searching for the number 10, I found many results. Using intuition, I suspected that the assignment bd=10 was the key, so I changed it. Refreshed, and success! Below is the score after changing it to 99 attempts: ...

September 27, 2013 · 1 min · Zhiya

Bye, BUCT

From the moment the aunt who collects garbage became friendly and kind, I felt that graduation was not far away. I thought there was nothing to be reluctant about, nothing to be sad about, but the song “Goodbye” at the end of the degree awarding ceremony still made my nose tingle. The student ID was stamped with the words “Graduation Souvenir,” as if declaring the end of something. The dormitory is empty and messy, and the old items unearthed while packing luggage pull people back to the past. The sound of rolling suitcases occasionally echoes in the hallway, and without turning around, you know someone else has left. Some choose to leave quietly, some choose to say goodbye to everyone, but the commonality is that it’s always a blitzkrieg. At this time, there can be no hesitation; once you decide to go, you must go, otherwise, the ink on the paper won’t be enough. The boy playing guitar under the dim streetlights and the couples walking back and forth in graduation shirts make everyone’s gaze warm. If only this weren’t graduation season, it would be even better. At night, I leave the school with the last bit of luggage. ...

June 27, 2013 · 1 min · Zhiya

Why Write a Blog

Recently, I’ve been reading Liu Weipeng’s “Dark Time”. There’s a chapter discussing why one should write a blog, which resonated deeply with me. Borrowing the thought process from “Dark Time” on this topic, I want to combine it with my own experiences to record my views. My Blogging History I created my first blog in the third year of middle school. During a computer class, the teacher introduced the concept of blogs, so I followed the trend and applied for a free blog, uploading a few photos I had taken. Apart from those initial uploads, I never updated it again, and over time, I even forgot the address. Later, I sporadically created several blogs, each time driven by a sudden urge to express something, but once the blog was set up, I would forget what I wanted to say, leaving it unfinished. In college, while working on ACM problems, I started a Sina blog to post solutions, but that too ceased updates after a few days. The blog I have now was created during my senior year internship. I encountered a challenging problem at work, and after consulting various fragmented resources to solve it, I felt a sense of accomplishment and wanted to document the thought process. So, I set up a WordPress on SAE, which is the blog you see today. It wasn’t until then that I truly began blogging. ...

June 2, 2013 · 4 min · Zhiya

The First Offer and Rejection Letter in My Life

I received the first offer of my life three hours ago from a large software company in China. Two days ago, I attended the company’s presentation at my school, more out of curiosity than anything else. With the mindset of gaining experience, I participated in the on-site written test and interview. And just three hours ago, a fresh offer was placed in front of me. Oh, so this is what an offer looks like. ...

November 1, 2012 · 1 min · Zhiya