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

Lint game data metafiles against GTA5.xsd for Rockstar's game engine (RAGE)

rage-lint Lint RAGE (only GTA5 at the moment) meta/XML files for validity based off of the GTA5.xsd generated from game code. This script accepts a se

GoatGeek 11 Sep 18, 2022
made a life sim game because i was tired of a astray gamedev company, everything here is open-source

Srel made a life sim game because i was tired of a astray gamedev company, everything here is open-source Progress Currently making the cmd-line versi

2 Nov 14, 2021
A two-player strategy game played on a rectangular grid made up of smaller square cells of chocolate 🍫 or cookies 🍪

Chomp Game ©️ Chomp is a two-player strategy game played on a rectangular grid made up of smaller square cells of chocolate 🍫 or cookies 🍪 , which c

Farivar Tabatabaei 2 Feb 02, 2022
A Game Engine Made in Python with the Pygame Module

MandawEngine A Game Engine Made in Python with the Pygame Module Discord: https://discord.gg/MPPqj9PNt3 Installation To Get The Latest Version of Mand

Mandaw 14 Jun 24, 2022
NSI project --> 2D platformer in Python with Pygame

Projet de NSI (2021-2022): Jeu sous Python Collaborateurs: Remi K-S et Nathan D Lien de l'environnement IDE de Python en ligne: https://replit.com/@Re

Remi K-S 3 May 24, 2022
3 Oct 22, 2021
AI plays games with python

AI-plays-games- To use it, you first need to create an img file and save the pic

Murat Ali Avcu 7 Oct 16, 2022
A fun, casual and strategic game made using Python!

Steve's Pixels A fun, casual and strategic game made using Python! Prerequisites See requirements.txt Demo video demo.mp4 Usage python -m steves_pixel

Jaivardhan Bhola 9 Sep 17, 2022
🐥Flappy Birds🐤 Video game. With your help I can go through🚀 the pipes. All UI is made with 🐍Pygame🐍

🐠 Flappy Fish 🐢 I am Flappy Fish 🐟 . With your help I can jump through the pipes and experience an interesting and exciting flight deep into the fi

MohammadReza 2 Jan 14, 2022
A converter for the .BMR / .RLE bitmap files used in some Neversoft PS1 games.

Requirements python3 pyqt5 - can be installed with pip install PyQt5 pypng - Included Usage Instructions This program can be running py main.py in the

4 Jul 30, 2022
Practice the use of the random library to get the user guess the result.

Guessing Game Practice the use of the random library to get the user guess the result. Additional description about the project and its features. Buil

Herbert Orellana 1 Dec 13, 2021
This a Chess PGN saver which allows you to save your game pgns, in a .pgn file

PGN Saver This a Chess PGN saver which allows you to save your game pgns, in a .pgn file This can be a very useful tool for the people using chessbase

3 Jan 06, 2022
Python Program: Hilo Game

Python Program: Hilo Game 🂡 Description Hilo is a game in which the player gues

2 Jan 22, 2022
Wordle Tas Tool is a terminal application for solving Wordle puzzles

Wordle Tas Tool Terminal application for solving Wordle puzzles Wordle Tas Tool (WTT) is a Python script that iterates over SCOWL95 to solve Wordle pu

1 Feb 08, 2022
Box - a world simulator written in python with pygame

Box is a world simulator written in python with pygame. Features A world generation system A world editor Simulates creatures called boxlanders. You c

1up Community 3 Nov 14, 2022
Découvrez CubeCraft Launcher, une application uniquement codé en Python et en Batch

Découvrez CubeCraft Launcher, une application uniquement codé en Python et en Batch. Grâce à son interface graphique facile et intuitive, vous pouvez vous retrouver facilement.

1 May 21, 2022
This is a two player snake game

Trake This is a two player snake game How to play the game There is food and two players. You try to eat food to become large and gain points. Player

Grrub 1 Dec 19, 2021
Warden - Warden guessing game 1

Warden first python project and first posted project sorry for errors warden gue

hasher 3 Jan 09, 2022
16-bit PvP platform minigame made for a final high-school project

16-bit PvP platform minigame made for a final high-school project

Flavien 1 Feb 10, 2022
Brawl Stars v31.96 server emulator written in Python.

Brawl Stars v31 Brawl Stars v31.96 server emulator written in Python. Requirements: Python 3.7 or higher pymongo dnspython colorama MongoDB configurat

9 Nov 26, 2021