For our four friends.
This is a simple demo for the coming GiftGame.
To make everyone pick a gift from the gift pool and take with conflict, I make the python demo.
python 3.10 or later (my verion is 3.10, if any version works, let me know).
Run the command
python gift.py
You may get a result like this,
***********Gift Number***********
* yl gift number: 4 *
* zy gift number: 1 *
* xx gift number: 3 *
* ll gift number: 2 *
*********************************
.
.
.
.
.
gift assign success!
***********Gift Assign***********
* yl Pick zy gift *
* zy Pick xx gift *
* xx Pick ll gift *
* ll Pick yl gift *
********************************