This is the card game like HearthStone and Magic

Overview

Territory War

How to use it

use pip3 to install django and channels:
pip3 install Django
pip3 install channels

go to CardGame/first/consumers.py and go to Line 36
change the path which contain “first” folder example

To create database , first , install mysql.connector
pip3 install mysql-connector-python
go to CardGame/first/Database.py use function
createDatabase()
createPasswordTable()
creatCardTable()

change the path which contain manage.py file
python3.9 manage.py runserver




Game's content

example

When you in this game , you must register a account number , click '注册'.
example

And then you can access this game.
example

In this game you can click '新建套牌' to create a deck.
example

After creating a deck, you can click '匹配' to match a opponent, waiting for the opponent.
example




How to diy a card

go to /CardGame/first/father.py
you will see the superclass of the card called card
It have and function, Rcost() is to output the the final cost
such as ['g','g','g','g','g']
It means this card have 5 green
example
This is the cost bar 5 green means your cost bar must have a number greater than 5 in the last row


There are three subclass servent magic ground , ignore the shelter
you can see there are lots of function in servent
example
you can over override:
ZhanHong(self,MyMaster,Master,selectIndex=None):# when use servent the function is used
WangYu(self,MyMaster,Master): # when servent is die function is uesd
WhenBeAttack(self,MyMaster,Master,otherServent):# when serveny be attack use this function
whenSendData(self,MyMaster,Master):#used to make Aura
whenTermFinish(self,MyMaster,Master):# when round finish use this function


The class called Master is protagonist
The live is your live
groundList is your cost bar
cardHand cardGround cardStorage tomb all store card object
cardHand store the cards in your hand
cardGround store the cards in your Battle field
cardStorage store the cards in your cards library
tomb store the servant who have been died
getCard(self,num): is to draw a card , it will return the array which contain the objects you get


Now start to make a card, go to /CardGame/first/cardServent.py
This is the example
example
you must override the founction to create the skill
warning: your subclass name must the same as your cards name

Attempts to solve Wordle-like puzzles.

Attempts to solve Wordle-like puzzles.

cotman 1 Feb 14, 2022
A Street Fighter game in Pygame

What is Street Fighter? Street Fighter, commonly abbreviated as SF or スト, is a Japanese competitive fighting video game franchise developed and publis

Sameer Sahu 3 Aug 20, 2022
A game based on Motus, to be played on Unix terminals.

Motus python game A game based on Motus, to be played on Unix terminals. How to play? Before playing, you need to install all the requirements needed

Arthur Molia 1 Feb 02, 2022
To be easier to create backup files for the game StoneShard

StoneShard_save_backup_tool A tool to create backups and load them. Setup Configure the program by opening the "config.json" file. In this file you wi

Lucas V. Moog Brentano 6 Sep 15, 2022
This is a python interactive story game that I made to show off what I've learnt in python coding for a month

Purpose The files in this repository are for that of a story game created with python version 3.8.5 The purpose of this project was to get familiar wi

0 Dec 30, 2021
A puzzle game coded entirely in Python.

Pyzzle A puzzle game coded entirely in Python. This is a school project created by me, Mohit Singh. The .exe file, created from the main.py script, is

Mohit Singh 1 Mar 19, 2022
Typing test and practice on command line without the need of any internet connection

Terminal-Typing-Test Typing test and practice on command line without the need of any internet connection About CLI based typing test and practice tha

Angad Deep Singh 3 Oct 19, 2022
🌍🍓 A better MCPi Launcher

Planet Launcher A better, maintained launcher for the Minecraft: Pi Edition Reborn mod. Report Bug | Request Feature Planet is a maintained, feature-r

15 Oct 19, 2022
Flappy-Bird AI - Flappy Bird game with AI

FLAPPY BIRD AI Flappy Bird game solved with neat-python, a Python module based o

1 Jan 07, 2022
Blackjack-Py is a terminal based game of blackjack within your terminal playing against CPU.

About Blackjack-Py is a terminal based game of blackjack within your terminal playing against CPU. Usage Clone the repo and run it with whatever pytho

Eccentrici 1 Dec 28, 2021
N-Queens game made using pygame library

N-Queens N-Queens game using pygame for AIML201 Testing: 1. git clone https://github.com/python-game-dev/N-Queens.git 2. cd N-Queens 3. python main.py

1 Sep 24, 2021
Setup minecraft server (Tuinity) to your directory

hapeshiva server-setup Setup minecraft server (Tuinity) for you. Support for optimization Create optimized yml Customazible server port and view dista

3 May 11, 2022
Krieg is a Python package for a general game framework.

Krieg Krieg is a Python package for a general game framework. It provides base classes for implementing simple games. Some example games are already i

Juho Kim 2 Jan 06, 2022
Rudimentary CMD based implementation of the Tic Tac Toe game

Packages used: questionary random os (Requires Python 3.8 as walrus operators are used in the script) Contains the .py file (tictactoe.py) and an exe

Ashwin 1 Oct 15, 2021
:tada: 2048 in your terminal

term2048 term2048 is a terminal-based version of 2048. Install pip install term2048 To upgrade a previous installation, use: pip install -U term2048

Baptiste Fontaine 798 Nov 21, 2022
Un semplice Snake game , come negli anni 90!

Project-SnakeGame Un semplice Snake game , come negli anni 90! ITA VI porto un semplice giochino per i nostalgini degli anni 90 , ispirato al vecchio

Matt K Lawrence 1 Oct 17, 2021
A Python Sudoku Game Made with Pygame.

A Python Sudoku Game Made with Pygame. A Begginer Aimed at Learning Git, This Game Uses a Puzzle Generator Made by RutledgePaulV, Link to his Repo:

helaxious 3 Jun 29, 2022
Tic tac toe game developed by naman in python

TIC TAC TOE GAME DEVELOPED BY NAMAN IN PYTHON . IT USES MINMAX ALGORITHM TO COMPETE IN DIFFICULTY MODE

Naman Anand 4 Jun 24, 2022
An algorithm to reach a correlated equilibrium in multiplayer games.

Correlatedpy: a python library for distributed learning of correlated equilibrium in multiplayer strategic games. View Demo · Report Bug · Request Fea

Omar Boufous 2 Feb 01, 2022
BitBot - A simple shooter game

BitBot BitBot - A simple shooter game This project can be discontinued anytime I want, as it is not a "MAJOR" project for me. Which Game Engine does i

whmsft 1 Jan 04, 2022