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

Mastermind-Game - A game to test programming and logical skills

Bem vindo ao jogo Mastermind! O jogo consiste em adivinhar uma senha que será ge

Marcelo Daros 0 Jan 27, 2022
Console 2D GameEngine {C2DGE} [0.1.0]

Console 2D GameEngine {C2DGE} [0.1.0] By Grosse pastèque#6705 The Project's Goal : This projects was just a challenge so if you have bad reviews, it's

Big watermelon 1 Nov 06, 2021
A coven of tools to assist in PnP RPGs.

pupillae A coven of tools to assist PnP RPGs. Status: Pre-alpha. Testing. Adding necessary functions and features as discovered/required. Other-than-P

0 Dec 09, 2021
Minecraft - Online Players Overlay Generator

Minecraft - Online Players Overlay Generator Contents About Quick Start Download Pre-Built Binary Run from Source Configuration Command-Line Options F

4 Sep 12, 2022
A short non 100% Accurate Solar System in pygame

solar-system-pygame Controls UP/DOWN for Emulation Speed Control ESC for Pause/Unpause q to Quit c or ESC again to Continue LEFT CLICK to Add an orbit

LightCrimson 2 May 28, 2022
Pygame Raycaster made by me.

Pygame Raycaster made by me.

Sable 0 Jan 10, 2022
Code d'un jeu en python par Graveen (avec mes modifications)

ATTENTION Vous ne devez pas copier coller le code sans le comprendre, apprennez déjà, le python et pygame, et seulement ensuite, vous pourrrez l'utili

TheBigWolfy 7 Nov 02, 2022
SuperChess is a GUI application for playing chess.

About SuperChess is a GUI application for playing chess. It is written in Python 3.10 programming language, uses PySide6 GUI library, python-chess lib

Boštjan Mejak 1 Oct 16, 2022
Blender Game Engine Game Type Templates Logic Bricks (and Python script) based Game Templates for Blender

Blender-Game-Engine-Templates Blender Game Engine Game Type Templates Logic Bric

3 Oct 25, 2022
中文版本的ai地牢,一个使用GPT-2的文字冒险游戏,使用清源CPM预训练模型finetune而成。

中文版本的ai地牢,一个使用GPT-2的文字冒险游戏,使用清源CPM预训练模型finetune而成。

icybee 178 Jan 03, 2023
A python script to solve Wordle puzzles

Wordle solver A python script to solve Wordle puzzles.

Felix Weinberger 1 Feb 12, 2022
This is a basic virtual quiz game using opencv-python

Basic Virtual-Quiz-Game This is a basic structure of a virtual quiz game using opencv-python. As the camera window opens up we can see the questions a

2 Dec 11, 2021
Replicating Minecraft World Generation in Python

Minecraft World Generation in Python This is an attempt to replicate Minecraft world generation in Python. This is part of an article published on Med

Bilal Himite 159 Dec 19, 2022
Wordle-prophecy - The comprehensive list of all Wordle answers, past and future

About This repo contains the comprehensive list of all Wordle answers, past and

Hayden Moritz 2 Dec 15, 2022
Yo-Snake - A blend of yolov5 and deepsnake

Yo-Snake A blend of yolov5 and deepsnake 结合了yolov5和Deepsnake模型 Deepsnake 模型代码比较复

7 Apr 01, 2022
Create a Hangman Game using Python and all techniques of Python.

Hangman Game Created by Fernando Callasaca Game rules: Choose a word and if you guess it will appear completed. In case it is not the word then the ma

Fernando Callasaca 3 Nov 01, 2021
An open-world game made in Python.

Dragon Realms Notes Windows OS only Contributors This project follows the all-contributors specification (emoji key, command Issue). See what you can

Dragon Realms 2 Jul 28, 2022
Wordle-player - An optimal player for Wordle. Based on a rough understanding of information theory

Wordle-player - An optimal player for Wordle. Based on a rough understanding of information theory

Neill Johnston 3 Feb 26, 2022
QuizGame is a quiz with different topics. You can choose a topic and take the quiz

QuizGame is a quiz with different topics. You can choose a topic and take the quiz. In the end you will get your result. The program is under active development, so there may be errors or flaws in it

Lev Likhachev 2 Nov 12, 2021
To solve games using AI, we will introduce the concept of a game tree followed by minimax algorithm.

To solve games using AI, we will introduce the concept of a game tree followed by minimax algorithm.

Vaibhaw 7 Oct 13, 2022