Play a game of Phazed with a bot or with other players or watch bots play with each other

Overview

Phazed Game and Player

play a game of Phazed with a bot or with other players or watch bots play with each other

Live Demo

hosted on repl.it (makes sure to press the green triangle at the bottom right corner to run the program)

Technologies Used

  • Python
  • Python Standard Libraries:
    • collections (defaultdict)
    • itertools
    • random

About Phazed, the game

Installation

if you do not intend on ammending the code or adding additional players, you might want to use the Live Demo instead

  1. Make sure Python is installed on your system: Download Python
  2. Clone the repository or Download ZIP
    git clone https://github.com/chuahxinyu/cli-phazed.git
  3. Run game.py to play the game
    python game.py

Playing the Game with game.py

  • Default Settings
    • Normal Game
    • 4 players
      • 1 Human player and 3 Bot players
    • Automatic Card Handling
  • Custom Settings

    can be changed by entering No when asked → Use default settings? [Yes/No]:

    • Normal/Bonus game (to be added)
    • Number of Players (2 to 4 players)
      • consisting of either Human of Bot players
    • Automatic Card Handling
  • Inputs
    • generally not case sensative (except for Bot names)
    • [Yes/No] questions can be replied with y or n

How to Add A Bot

  1. Create bot1.py in same folder as where bots
  2. Uncomment the following lines in game.py (marked with ☚)
    # Import Bots
    from bots.bot0 import phazed_play as bot0
    # from bots.bot1 import phazed_play as bot1  ☚
    # from bots.bot2 import phazed_play as bot2
    # from bots.bot3 import phazed_play as bot3
    
    # Import Bonus Bots
    from bonusbots.bonusbot0 import phazed_bonus as bonusbot0
    # from bonusbots.bonusbot1 import phazed_bonus as bonusbot1
    # from bonusbots.bonusbot2 import phazed_bonus as bonusbot2
    # from bonusbots.bonusbot3 import phazed_bonus as bonusbot3
    
    BOTS = {
        "Bot0": bot0,
        # "Bot1": bot1,  ☚
        # "Bot2": bot2,
        # "Bot3": bot3,
        "BonusBot0": bonusbot0 #,
        # "BonusBot1": bonusbot1,
        # "BonusBot2": bonusbot2,
        # "BonusBot3": bonusbot3
    }
  • additional bots can be added by naming them bot2.py and bot3.py and uncommenting the appropriate lines
  • bonus bots can be addded by naming them bonusbot#.py, where # is the bot number (from 0-4) and adding them in bonusbots
  • a maximum of 4 bots can be added
Owner
Xin Yu
First-Year at the University of Melbourne, Bachelor of Science (Computing and Software Systems).
Xin Yu
An interactive pygame implementation of Conway's Game of Life

Game of Life An interactive pygame implementation of Conway's Game of Life Installation Clone the repo and navigate into it. git clone https://github.

Ethan 1 Dec 05, 2021
Code and outputs from analysis determining that the wordle game can always be won in six moves.

wordle_worst_case_analysis Code and outputs from analysis determining that the wordle game can always be won in six moves. This is for the general cas

2 Aug 19, 2022
Lutris desktop client in Python / PyGObject

Lutris Lutris is an open source gaming platform that makes gaming on Linux easier by managing, installing and providing optimal settings for games. Lu

Lutris 6.1k Dec 30, 2022
用于 blivechat 的图形界面

blivechat GUI 用于 blivechat 的图形界面。 有朋友在搞 Vtuber,像 blivechat 类似的项目能通过自定义 CSS 的方式在 OBS 上添加一个非常好看的聊天栏。但是想要在桌面端看到弹幕的话得要再开一个浏览器页面,十分不方便。就想写一个背景透明的浮窗浏览器。 挺喜欢

Silence 11 Dec 29, 2022
Guess number game with PyQt5

Guess-Number-Project Guess number game with PyQt5 you can choose a number in your mind and then computer will guess a nummber and you guide the comput

MohammadAli.HBA 1 Nov 11, 2021
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
Chess game for 2 players with UI

2-D Chess for 2 players Overview This is a simple 2D Chess game for 2 players using pygame library. Requirements To be able to run this game, you must

7 Apr 06, 2022
A Pygame game made in 48 hours

Flappuccino Flappuccino is a game created in 48 hours for the PyGame Community New Years Jam using Python with Pygame. Screenshots Background Informat

PolyMars 242 Jan 02, 2023
Games: Create interesting games by pure python.

Create interesting games by pure python.

4.2k Jan 06, 2023
For the Exapunk minigame, ПАСЬЯНС

Exapunks Automation This repository solves Exapunk's Solitaire minigame, ПАСЬЯНС. This repository is useable, but only with specific display condition

Will C 5 Jul 29, 2022
This is a classic guess coin game (Heads or Tails) implemented by the Chialisp.

This is a classic guess coin game (Heads or Tails) implemented by the Chialisp. It is an absolutely fair P2P game based on the Chia blockchain. You can play with anyone in the world without custody.

Kronus91 14 Jul 02, 2022
Minecraft Script to Tellraw Datapack Generator

Minecraft Script to Tellraw Datapack Geneator (STDG) can generate a chain of tellraw command in datapack from script.

1 Jan 28, 2022
Made with pygame. Multiplayer game using socket module and threading.

Rock Paper Scissor made with python-pygame. Poorly made, as a beginner in programming. Multiplayer with server code and client code provided.

AllenJo 1 Dec 29, 2021
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
This repository contains the Unix Game challenges and metadata

This repository contains the Unix Game challenges and metadata

Nokia 7 Apr 06, 2022
Snake game made in python with the pygame library.

Pygame snake Snake game made in python with the pygame library. Requirements pip pygame Pygame Installation On the command line, type: pip install pyg

Ayza 3 Oct 02, 2022
A top-down arcade space shooter made in pygame.

About: Journey Through Space is a top-down arcade shooter made in pygame. You play as a pilot who was left behind after a battle and the goal is to go

Crimson Sane 0 Jan 01, 2022
Tic Tac Toe Game build with Python

Tic Tac Toe Game Description two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing th

Kemal Kochekov 2 Jan 21, 2022
Among AIs is a (prototype of) PC Game we developed as part of the Smart Applications course @ University of Pisa.

Among AIs is a PC Game we developed as part of the Smart Applications course @ Department of Computer Science of University of Pisa, under t

Gabriele Pisciotta 5 Dec 05, 2021
A python script to solve Wordle puzzles

Wordle solver A python script to solve Wordle puzzles.

Felix Weinberger 1 Feb 12, 2022