Location>code7788 >text

AI Thousand Loves Ten Thousand Flowers (java call api implementation) with complete project and comments) reset version)

Popularity:897 ℃/2024-11-12 19:28:17

I feel like the first version of the blog was a bit low quality, so I deleted and reset it a bit, and hopefully it'll give others some inspiration for their code!

Ex:/h4o3/p/18523151

(A bit cheap)

Registration and login functions using MySQL implementation (in fact, nothing useful, in order to hand in a temporary addition to the function of homework, can be skipped)

If you start the project from the test_main class, theAbility to skip login and database operations

Starting the project from the MainInterface class starts the full version, which needs to be linked to the database


Project Share:
Some bro asked me why I uploaded the project to the netbook, of course it's for the extraction code this dish of vinegar

Some details of the code and the function of each class are written in the commentsFor easy reference

Link./s/1aVJq0m5lpN3n-YWoDTE5ZQ?pwd=0721 Extract Code: 0721


Feature Description:
The basic functions of the ai simulation gal dialog are pretty much there, such as memorizing the last ten dialogs, outputting the text verbatim, deleting the ai-specific meaning-unspecified line breaks, a button in the upper left corner to randomly switch backgrounds, and corresponding BGMs for the two characters.
The project has setting texts corresponding to the two characters, which are used to feed the ai simulated character personalities.


Serving method:

  • Use idea to open the project in the web drive, open the pom file to refresh the dependencies

  • The apiKey at the beginning of the AIApiHandler class needs to be replaced with your own (my api is from the/This site gets it, or you can use your own secret key if you already have one.) If you have your own key, you can use your own secret key.

  • Start the project from the MainInterface class, the start of the full version, you need to modify the database class, DatabaseManager class in the replacement of the database information, modified to their own address

  • If you start the project from the test_main class, theAbility to skip login and database operationsIf you do not need to set up the DatabaseManager database class, you will not need to set up the DatabaseManager database class.

  • CongInterface and FangInterface are role classes, copy and paste to mass produce other roles.

  • The code ""...... and "Cong Yu Xiaoqu.mp3" are used as the background image and background music. You can use the editor that comes with "A Thousand Loves" to create them (Tateki Appreciation).


Postscript:
The java api link is such a pain in the ass, it's become a Python lazy dog
Don't really understand why my BGM can only be read in wav format, not mp3!


prprprprpr effect image: