GithubHelp home page GithubHelp logo

liujiatong's Introduction

Wenling LiuJiaTong

This project aims to implement a simple Wenling LiuJiaTong game. Wenling LiuJiaTong is popular in Wenling area of Taizhou. It consists of 6 people playing four-deck with a total of 216 cards, of which 3 people in a group are called Dujia.

Get started!

This project is fully implemented using python(>=3.9.0).

Start server/main.py on the server, players/onlookers can connect to start game.

Now we have implemented reconnecting mechanism, it use local cookie to resume.

  • For server: Now it can serve forever for every game and don't need to restart if anything ok.
  • For client: So if you want to execute multiple clients on one machine, you need to add -n flag to disable local cookie. Also the last client cookie will be saved and other cookies will disappear.
# start server
python3 ./server
# start client
python3 ./client
# start multiple clients on one machine
python3 ./client -n

Multi-platform

This game can be run on Windows/Linux/Mac, but needs underlying terminal to support ANSI escape code.

There are something you need to care before playing.

  • Windows: It's recommanded to use Windows Terminal, you can find it in Microsoft software store. Cmd/Powershell before Windows10 doesn't support ANSI escape code.
  • Linux: There is nothing needs to care for now.
  • Mac: In some terminals, blinking text is disabled. You can enable it by checking Preferences > Check Profiles > Text > Blinking text allowed.

Contributions

Contributions are very welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.