This project is designed to crack a mobile game named "4=10" (official website). In this game, you get 4 numbers and some usable operators in each stage. And the goal is to make the result equal 10 with those given operators which do not always contain all of the "+", "-", "×", "÷". ㅤ
▲ The stage is clear in the left case and not clear in the right one ▲
ㅤ
ㅤ
- Run cell group
Imports & Functions&Preprocessing
ㅤ
- Go into cell group
Mainand select mode as well as set X&Y, where X&Y means "X=Y". X is 4 and Y is 10 in most of condition, just like the name of this game~. But if you wanna try something cool, you can set X&Y as different number. e.g. 5=10, 4=100, 5=87...etc. BTW, the following are the modes able to select:
| mode | Function |
|---|---|
| Get Ans | Get answers of X=Y |
| Get Quiz | Get quizzes of X=Y in various difficulty |
| Grid Search | Generate unprecedented quizzes data |
🔔 Don't forget to run this cell after selecting & setting.
ㅤ
-
Run the cell of the mode you select only or all of the rest cells.
ㅤ
-
If you choose the mode "Get Ans":
After running the cell
Mode "Get Ans", some widgets will be displayed. Then input the quiz number and click banned operators. Finally get the answer of X=Y by clicking the Get Ans! button. BTW, you can change the amount of answers you want to see at most if you wanna get more or fewer answers.
ㅤ
ㅤ-
If you choose the mode "Get Quiz":
After running the cell
Mode "Get Quiz", some widgets will be displayed. Then select the difficulty from 1~5. Finally get the quiz of X=Y by clicking the Get Quiz! button. BTW, you can change the amount of answers you want to see at most if you wanna get more or fewer answers.
ㅤ
▲ You can get answer as well after getting quiz by clicking the "Show Ans!" button. ▲
🔔 You can change the quizzes data source by editing
quizzes_datain this cell if you have another one.ㅤ
-
If you choose the mode "Grid Search":
After executing
Mode "Grid Search", you can generate your own unprecedented quizzes data with X=Y values. The process can be quite time-consuming if X exceeds 5, but this shouldn't be a major issue as the progress will be displayed in real-time during the run and saved as a pickle file in your Google Drive each time you stop running the cell. At the end of the job, a CSV file named X=Y.csv (where X and Y are numbers you previously set) will also be generated and saved in your Google Drive.Additionally, you're able to change the folder where your pickle and CSV files are stored by adjusting the
log_folderandoutput_folderparameters in this cell. Moreover, you can enable LINE notifications to keep track of the progress of the grid search by entering your LINE notify API token into theline_notify_api_tokenparameter in this cell. If you prefer not to expose your LINE notify API token publicly when running this project externally, you can modify theline_notify_api_token_pathparameter with the path to a text file containing your token in your Google Drive, which can also be read.ㅤ
-
ㅤ
ㅤ
❓ FileNotFound error occurs in Mode "Grid Search", how to solve it?
💡 Maybe it's a bug in Google Drive and I have no idea why it happens, either. But don't worry because it still works, which means the log data will not disappear but be found next time. What you only need to do is running again to continue.
ㅤ
❓ May I share the quizzes data with others by giving them toward the author to add them into this repository?
💡 Sure! Just send mail to pikasxyz@gmail.com in detail~
ㅤ
❓ Something different from the above.
💡 Send mail to pikasxyz@gmail.com and explain in detail.


