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
A Tetris Game for programming education

Tetris Game プログラミング学習を目的とした、ブロックを操作してスコアを競うゲームです。 FAQはこちら。 tutorialはこちら。 実行環境準備 Mac環境 Finder→Application→Utility→Terminalから、ターミナルを起動して以下コマンドを実行する。 # i

11 Dec 01, 2022
A project to san the internet of all open Minecraft servers.

MC-Server-Finder A project that scans the internet to find open Minecraft servers. Install the dependencies by running pip install -r requirements.txt

drakeerv 8 Mar 12, 2022
Wordlebot - A simple Wordle puzzle solver in python

WordleBot A simple search-based puzzle solver for Wordle, built in Python. Inspi

Rob Kimball 2 Jan 27, 2022
This project is an exciting fun game for beginners to build up

This project is an exciting fun game for beginners to build up. The program generates a random number from 1 to 10, or 1 to 100 any range that is specified and the user must guess the number after a

PyLaboratory 0 Feb 07, 2022
Historical battle simulation package for Python

Jomini v0.1.4 Jomini creates military simulations by using mathematical combat models. Designed to be helpful for game developers, students, history e

Ümit Kaan Usta 36 Dec 08, 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
BritishTrainsDepartureBoard - A pygame program that immitates the dot matrix departure screens found at National Rail stations

BritishTrainsDepartureBoard - A pygame program that immitates the dot matrix departure screens found at National Rail stations

Finn O'Neill 3 Aug 10, 2022
HTTP API for FGO game data. Transform the raw game data into something a bit more manageable.

FGO game data API HTTP API for FGO game data. Transform the raw game data into something a bit more manageable. View the API documentation here: https

Atlas Academy 51 Dec 26, 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
DOTD - A murder mystery game made in Python

DOTD This repo holds the files for my video game project from ENG101, Disaster o

Ben Bruzewski 1 Jan 13, 2022
pygame is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.

pygame is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.

pygame 5.6k Jan 01, 2023
Python code that gives the fastest path from point a to point b of a chess horse

PERSONAL-PROJECTS CARLOS MAGALLANES-ARANDA'S PERSONAL PROJECTS kchess.py is the code. its input is the start and the end. EXMPLE - a1 d5 its output is

Carlos Magallanes-Aranda 1 Dec 26, 2021
A zombie game using Kinetic. You can control players using fingers

This is Eden Park's portpolio: Works, projects and practices This repository can be used to show the potential employers to check my works, code and p

Eden Park 4 May 16, 2022
A first-person shooting game developed by using OpenGL

OpenGL-MazeSurvivor-FirstPerson Shooting Game This application named ‘MAZE SURVIVOR’ is a first-person shooting game that finished within a month. It

JunHong 2 Jan 04, 2023
Finding a method to objectively quantify skill expression in games, using reinforcement learning

Analyzing Skill Expression in Games This is a repo where I describe a method to measure the amount of skill expression games have. Table of Contents M

Marcus Chiam 4 Nov 19, 2022
Wordle is a web-based word game. Players have six attempts to guess a five-letter word;

Wordle is a web-based word game. Players have six attempts to guess a five-letter word; feedback is given for each guess, in the form of colored tiles, indicating when letters match or occupy the cor

Abhishek 2 May 21, 2022
Pyvidplayer - An extremely easy to use module that plays videos on Pygame

pyvidplayer An extremely easy to use module that plays videos on Pygame Example

17 Dec 05, 2022
游戏中按TAB键查看所有玩家分数的小程序

DDNet-show-points-in-game DDRaceNetwork 游戏中按TAB键查看所有玩家分数的小程序

3 Oct 13, 2022
Frets on Fire X: a fork of Frets on Fire with many added features and capabilities

Frets on Fire X - FoFiX This is Frets on Fire X, a highly customizable rhythm game supporting many modes of guitar, bass, drum, and vocal gameplay for

FoFiX 377 Jan 02, 2023
A rhythm-based game that automatically generates obstacles based on a song's features.

DISCLAIMER: This is my first coding project, created in December 2019. The game may not be optimized, and looking back on it, there are a lot of chang

Kenneth Huang 1 Dec 27, 2021