A minimal open source mtg-like tcg game made in python that can be played on a terminal emulator using a keyboard.

Overview

TCG-TERM

Project state:

๐Ÿ”ง ๐Ÿšง ๐Ÿšง ๐Ÿšง Incomplete, In development ๐Ÿšง ๐Ÿšง ๐Ÿšง ๐Ÿ‘ท

(Keep in mind that at the moment, This project is currently undone, and will not work, if you try to lunch it.)

Latest prototype of this project are in the TEST directory which like the name imply is for testing and development purposes.

Once the TEST directory has a working prototype, i will start to refine it, by making more generalise function that have more flexibility, i will separate most of the code in their own function & modual.

So far the summoning with color cost and non color is a bigger challange then expected to get working, I am doing my best but so far their is still much to fix. for example being able to use any colors of lands to pay for colorless cost...

All of this could probably be acheaved with javascript on an html webpage, but i whanted to play on the terminal, so if you wish to adapt the code for a more web based experience feel free to contribute to this project.

I will probably Reuse some code and thechnics from this previus project of mine. It was a verry similar project, and i learn a lot from making it, even do I try to keep this project simple, i do not whish to rush it, and i do not have that much free time to work on it, so things can take some time to take shape.

RAND-CARD

What is tcg-term?

It started as a project to make an mtg alternative game on the linux terminal, but i now aim to include other style of tcg game play mode while avoiding to enfringe on the copy rightable content.

It is a minimalistic, open-source, tcg-like game, made in python, that can be played on most terminal emulator on linux. The first goal to be realistic in scope, is to have a playable single player game, with simple generated card, that have simple Keyword ability effect. Then once completed, add complexity progressivelly, and maybe in the far long distant future a form of multiplayer.

I aim to have multiple main gamemode "inspired" by:

  • M4g!c
  • P0k3m0n
  • Yu-g!-0h
  • F0rc3 0f w!ll
  • V4n9u4rd3

Imagine a single game in which you can play all of the above mention game mode and havem ultiple deck of each of those mode, having all these cards option in the game shop!

And maybe a gamemode called Battle-Cry ( Another one of my open source project Here on Github. ) Battle-cry should begine development after this project is functional, so it might take a while. I will use what i learn making this project to make it as best as i can.

mtg_wiki P0K3M0n

Concept art

I am still not sure what is the best way to display the mana cost. C: Creatures, P: Permanents, L: Lands. D: Deck, H: Hand, G: Graveyard.

Game View

Turn: [Player_name_one]
Phase: [Beginning/Untap Step] 

โ–ถ๏ธ [Player_name_one]: Health[20]

D: โฌœ[60]
G: ๐Ÿ’€[0]
H: ๐Ÿ”ณ๐Ÿ”ณ๐Ÿ”ณ๐Ÿ”ณ๐Ÿ”ณ๐Ÿ”ณ๐Ÿ”ณ[7] 

L: ๐ŸŸช โฌ›โฌ›
P: ๐ŸŸง
C: ๐ŸŸซ ๐ŸŸซ[2] โฌ›
  ๐Ÿ—ก๏ธ
    ๐Ÿ›ก๏ธ๐Ÿ›ก๏ธ        
C: ๐ŸŸซ๐ŸŸซ๐ŸŸซ
P: ๐ŸŸง๐ŸŸง
L: ๐ŸŸช๐ŸŸช โฌ›

H: ๐ŸŸง๐ŸŸซ๐ŸŸช๐ŸŸซ๐Ÿ”๐ŸŸง[6]
G: ๐Ÿ’€[6]
D: โฌœ[60]

[Player_name_two]: Health[20] 

-[Info]----------------------
Name: [Lorem Ipsum]
Cost: ๐Ÿšซ[2] ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต 
Type: Creature
Rarity: Mythic rare ๐ŸŒŸ
Effect: [ ... ]
Power: ๐Ÿ—ก๏ธ[1]
Taughness: ๐Ÿ›ก๏ธ[1]

Text-only

Turn: [Player_name_one]
Phase: [Beginning/Untap Step] 

> [Player_name_one]: Health[20] Deck[60]

Hand:  #######[7] 
Graveyard: [0]

L: # %%
P: #
C: # #[2] %
  A
   BB        
C: ###
P: ##
L: ## %

Graveyard: [6]
Hand:  ####@#[6]

[Player_name_two]: Health[20] Deck[60]

-[Info]----------------------
Name: [Lorem Ipsum]
Cost: None[2] Blue[3] 
Type: Creature
Rarity: Mythic rare *
Effect: [ ... ]
Power: 1
Taughness: 1

Deck Edit View

Filter: Name[๐Ÿ…ฐ] Cost[๐Ÿช™] Power[๐Ÿ—ก๏ธ] Taughness[๐Ÿ›ก๏ธ] Color[๐Ÿšซ]
[Deck]
๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ
๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐Ÿ”๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ
๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸง๐ŸŸง๐ŸŸง๐ŸŸง๐ŸŸง๐ŸŸง
๐ŸŸง๐ŸŸง๐ŸŸง๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช
๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช
๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช

[Sideboard]
๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ
๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ
๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸซ๐ŸŸง๐ŸŸง๐ŸŸง๐ŸŸง๐ŸŸง๐ŸŸง
๐ŸŸง๐ŸŸง๐ŸŸง๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช
๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช
๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช๐ŸŸช

-[Info]----------------------
Name: [Lorem Ipsum]
Cost: ๐Ÿšซ๐Ÿšซ[2] ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต[3]
Type: Creature
Rarity: Mythic rare ๐ŸŒŸ
Effect: [ ... ]
Power: 1
taughness: 1
Copy: 3/4

โŒ[REMOVE] ๐Ÿ‘ฅ[Duplicate][Cost: 1000๐Ÿช™]
-----------------------------

๐Ÿšช[MAIN MENU]
[Player_name_one] 
Graveyard: ๐ŸŸง๐ŸŸซ๐ŸŸช๐ŸŸซ๐Ÿ”๐ŸŸง[6]
Field: โš”๏ธ

-[Info]----------------------
Name: [Lorem Ipsum]
Cost: ๐Ÿšซ[2] ๐Ÿ”ต[3]
Type: [Creature]
Effect: [ ... ]
P/T: [1/1]

Card Shop View

Don't worry you buy the cards with in game point, which can be won by winning game. No ingame purchasses XD

[Cards: 15x]:
  ๐Ÿ“ฆ[๐Ÿšซ][Cost: 150๐Ÿช™]
  ๐Ÿ“ฆ[โšช][Cost: 250๐Ÿช™]
๐Ÿ” ๐Ÿ“ฆ[๐Ÿ”ต][Cost: 250๐Ÿช™]
  ๐Ÿ“ฆ[โšซ][Cost: 250๐Ÿช™]
  ๐Ÿ“ฆ[๐Ÿ”ด][Cost: 250๐Ÿช™]
  ๐Ÿ“ฆ[๐ŸŸข][Cost: 250๐Ÿช™]
 
  ๐Ÿšช[MAIN MENU]

Settings View4

Settings:
 ๐Ÿ” Text Only [Off]
 โš™๏ธ Sound Effect [Off]
 โš™๏ธ Text Color [On]
 
 ๐Ÿšช[MAIN MENU]
 

Symbols emoji and therm used

Symbols:
Tapped โฌ›
Creature ๐ŸŸซ
Instant or Sorcery Or Artefact Or Enchantment ๐ŸŸง
Cursor/Slection ๐Ÿ” (Alternative cursor idea ๐Ÿ‘‡๐Ÿ‘†๐Ÿ‘‰๐Ÿคš๐Ÿ’  )
Colorless +
Attacking ๐Ÿ—ก๏ธ
Blocking ๐Ÿ›ก๏ธ
Colorless ๐Ÿšซ
Mana card ๐ŸŸช
Back ๐Ÿ”ณ
Mytic Rare ๐ŸŒŸ
Rare โญ
Uncomun ๐Ÿฅ‡

I also found these character emoji: ๐Ÿง™๐Ÿง™โ€โ™€๏ธ๐Ÿง™โ€โ™‚๏ธ๐Ÿง๐Ÿงโ€โ™€๏ธ๐Ÿงโ€โ™‚๏ธ๐Ÿง›๐Ÿง›โ€โ™€๏ธ๐Ÿง›โ€โ™‚๏ธ๐ŸงŸ๐ŸงŸโ€โ™€๏ธ๐ŸงŸโ€โ™‚๏ธ



Therm: P&T = Power and Taughness

Game default key bindings ๐Ÿ–ฑ๏ธ โŒจ๏ธ


## An option to customise or swap these default key bindings should be profided in the form of a config file or settings page, eventually.

# Controlle options
w = want selection (select what is selected by the cursor)
a = action (attacking/blocking/activating a spell)
s = skip (will skip to the next phase)
d = end turn (will skip all remaining phases)

# Move cursor
h = left
j = down
k = up
l = right

Help Needed!

I really want to play an tcg-like alternative game on linux, so please do your best to contribute if you can!

Read the task-list to see the priority. This project only accept clear, organized and well commented code. You can also submit suggestion and idea, as long as they are unambiguous and well developed.

WE NEED YOU

You feedback is welcome.

Owner
Amos
...
Amos
Example code for interacting with solana anchor programs - candymachine

candypy example code for interacting with solana anchor programs - candymachine THIS IS PURELY SAMPLE CODE TO FORK, MODIFY, UNDERSTAND AND INTERACT WI

dubbelosix 3 Sep 18, 2022
Manage gmail account using python, forget about imap and just code what you supposed to do.

GGmail Manage gmail account using python, forget about imap and just code what you supposed to do. Help See documentation for more details. Install In

Dylan Do Amaral 6 Sep 23, 2022
A Wrapper for ScarletAPI

ScarletAPI A Wrapper for ScarletAPI still a work in progress Docs these are the

Amashi 0 Mar 24, 2022
โ๐“๐ก๐ž ๐Œ๐จ๐ฌ๐ญ ๐๐จ๐ฐ๐ž๐ซ๐Ÿ๐ฎ๐ฅ๐ฅ ๐†๐ซ๐จ๐ฎ๐ฉ ๐Œ๐š๐ง๐š๐ ๐ž๐ฆ๐ž๐ง๐ญ ๐๐จ๐ญโž

โ๐“๐ก๐ž ๐Œ๐จ๐ฌ๐ญ ๐๐จ๐ฐ๐ž๐ซ๐Ÿ๐ฎ๐ฅ๐ฅ ๐†๐ซ๐จ๐ฎ๐ฉ ๐Œ๐š๐ง๐š๐ ๐ž๐ฆ๐ž๐ง๐ญ ๐๐จ๐ญโž

Abdisamad Omar Mohamed 5 Jun 24, 2022
DragDev Maintained Instance Of discord.py

discord.py - DragDev Flavour A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. The Future of discord.py

DragDev Studios 3 Aug 27, 2022
Project for the discipline of Visual Data Analysis at EMAp FGV.

Analysis of the dissemination of fake news about COVID-19 on Twitter This project was the final work for the discipline of Visual Data Analysis of the

Giovani Valdrighi 2 Jan 17, 2022
A multipurpose Telegram Bot written in Python for mirroring files on the Internet to Google Drive

Mirror Leech Bot Mirror Leech Bot is a multipurpose Telegram Bot written in Python for mirroring files on the Internet to our beloved Google Drive. Ba

1 Jan 01, 2022
A Discord bot to easily and quickly format your JSON data

Invite PrettyJSON to your Discord server Table of contents About the project What is JSON? What is pretty printing? How to use Input options Command I

Sem 4 Jan 24, 2022
Powerful and Async API for AnimeWorld.tv ๐Ÿš€

Powerful and Async API for AnimeWorld.tv ๐Ÿš€

1 Nov 13, 2021
an API to check if a url or IP address is safe or phishing

an API to check if a url or IP address is safe or phishing. Using a ML model. The API created using FastAPI.

Adel Dahani 1 Feb 16, 2022
I was sick of having to hand my friends my phone, so I gave my Spotify some SMS features!

SMSpotifY Just a little tool so that my friends can text a phone number and add to my spotify queue for parties and such:) Features Roles / Access Con

Sara 2 Jan 17, 2022
A discord bot that autobans blacklisted users by ID and Names

AutoBan A discord bot that autobans blacklisted users by ID and Names Getting Started Dependencies disnake @ git+https://github.com/DisnakeDev/disnake

Jason Martin 0 Oct 02, 2022
Primeira etapa do processo seletivo para a bolsa de migraรงรฃo de conteรบdo de Design de Software.

- Este processo jรก foi concluรญdo. Obrigado pelo seu interesse! Processo Seletivo para a bolsa de migraรงรฃo de conteรบdo de Design de Software Primeirame

Toshi Kurauchi 1 Feb 21, 2022
Python library to interact with a Z-Wave JS server.

zwave-js-server-python Python library for communicating with zwave-js-server. Goal for this library is to replicate the structure and the events of Z-

Home Assistant Libraries 54 Dec 18, 2022
This bot will send you an email or notify you via telegram & discord if dolar/lira parity breaks a record.

Dolar Rekor Kฤฑrdฤฑ Mฤฑ? This bot will send you an email or notify you via Telegram & Discord if Dolar/Lira parity breaks a record. Mailgun can be used a

YiฤŸit GรถktuฤŸ Budanur 2 Oct 14, 2021
Emo-Fun is a bot which emojifies the text you send it

About Emo-Fun is a bot which emojifies the text you send it. It is easier to understand by an example Input : Hey this is to show my working!! Output

Suvodeep Sinha 3 Sep 30, 2022
ๅŸบไบŽnonebot2็š„twitterๆŽจ้€ๆ’ไปถ

HanayoriBot(Twitterๆ’ไปถ) โœจ ๅŸบไบŽNoneBot2็š„TwitterๆŽจ้€ๆ’ไปถ๏ผŒ่‡ชๅธฆ็™พๅบฆ็ฟป่ฏ‘ๆŽฅๅฃ โœจ ็ฎ€ไป‹ ๆœฌๆ’ไปถๅŸบไบŽNoneBot2ไธŽgo-cqhttp,ๅฏไปฅๅŠๆ—ถๅฐ†Twitter็”จๆˆท็š„ๆœ€ๆ–ฐๆŽจๆ–‡ๆŽจ้€่‡ณ็พค่Š๏ผŒๅนถไธ”่‡ชๅธฆๅŸบไบŽ็™พๅบฆ็ฟป่ฏ‘็š„ๆŽจๆ–‡็ฟป่ฏ‘ๆŽฅๅฃ๏ผŒๅŠๆ—ถ่ทŸ่ฟ›ไฝ ๆ‰€ๅ…ณๆณจ็š„Vtuber็š„ๅค–็ฝ‘ๅŠจๆ€ใ€‚

้นฟไนƒใพใปใ‚ / Mahoro Kano 16 Feb 12, 2022
The open source version of Tentro - A multipurpose Discord bot.

Welcome to Tentro ๐Ÿ‘‹ A multipurpose Discord bot. ๐Ÿ  Homepage Install pip install -r requirements.txt Usage py Tentro.py Contributors ๐Ÿ‘ค Tentro Dev Tea

6 Jul 14, 2022
Kakatua discord music bot

Donate Ayo donasi! Lokal Internasional Ucapan Terima Kasih Tentu saja, donatur Bunga dan talent-talent h!mawari. Semoga rezeki teman-teman semakin lan

1 Oct 30, 2021
Telegram bot/scraper to get the latest NUS vacancy reports.

Telegram bot/scraper to get the latest NUS vacancy reports. Stay ahead of the curve and don't get modrekt.

Chee Hong 1 Jan 08, 2022