MLanHu / GiftGame

For our four friends
2 stars 0 forks source link

GiftGame

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.

environments

python 3.10 or later (my verion is 3.10, if any version works, let me know).

Example

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         * 

 ********************************