DLW card game at Bilibili World 2021

What is this?

This is a PHP implementation of the card-based game that was played at the station of Double Life World in 2021 Bilibili World, held 9th to 11th of July. The main rule of this game implementation is:

Non-urgent advice: Game rule in this implementation:

When the game starts, you will be randomly assigned three girls to play against you. There is also a public earth coin pool is located below the drawing results.

In each round, the system will randomly select one of 6 three-star cards, 6 four-star cards, and 4 archdemon cards to draw (not put back to the pool).

> If a three-star card is drawn, all players present will get one earth coin, and one extra earth coin will be put into the public earth coin pool.

> If a four-star card is drawn, all players present will get two earth coins, and two extra earth coins will be put into the public earth coin pool.

> If an archdemon card is drawn for the first time, no operation will be performed.

> If an archdemon card is drawn for the second time, the game ends.

After each round, you have 10 seconds to decide whether to quit the game. The game is not over if you quit and will continue unless either the last person exits or the second archdemon card is drawn. However, your earth coin income in this game will be settled one you quit and will no longer receive cards generated by drawing Earth Coin income.

After the game is over, the party that has exited the game (settled) and holds the most Earth Coins wins.

Of course, there are a few points that deviate from the game rules being used on site:

  • Players against are not random girls, but other players. It could have up to 7 other players competing with you,
  • You may be able to see how many earth coins other players have. But this is not always.
  • You would have more then 10 seconds to decide. In this game, because there is no human-factor, it is not considered.
  • You have the priority of choosing to exit. In reality, another player may call to withdraw before you.

However, this does not mean the game is not play-able. It is still fun to play!

Overall, this game is stateless – no database is needed for configuration, and making cheating very easy for someone knowing what they are doing. But it is an offline game, why would anyone cheat?

This was finished in June 2021, just a few days after Bilibili World 2021 and was made available on GCG.moe / GCGDS website. Due to server cost considerations, I am no longer hosting this on my server and publishing this on GitHub for anyone who wishes to feel some kind of Deja vu.

Non-urgent advice: This is a fairly ancient project

This game was last edited in June 2021. I was not in the University back then and was not as good as I currently am in PHP. The code lacks comprehensive comments and noticeably clear structure.

If any question found, please kindly open an issue. If you found out a bug and wishes to improve, please fork, and then submit a pull request.

Page last reviewed: 25 May 2023