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
You might also like...
An automation bot to play Myuu Discord game
An automation bot to play Myuu Discord game

Auto selfbot Myuu is a self Discordbot, meaning it will use your TOKEN to logged as your account and take commands from yourself to play the game.

TetrisAI - Tetris AI Bot using computer vision to play game automatically
TetrisAI - Tetris AI Bot using computer vision to play game automatically

Tetris AI Tetris AI Bot using computer vision to play game automatically bot.py

This is a simple telegram bot for the game Pyal, a word guessing game inspired by Wordle

Pyal Telegram Bot This is a simple telegram bot for the game Pyal, a word guessing game inspired by Wordle. How does it work? Differently from the ori

Use different orders of N-gram model to play Hangman game.

Hangman game The Hangman game is a game whereby one person thinks of a word, which is kept secret from another person, who tries to guess the word one

Bingo game now in python play as much you want :) no need to give me credit it's open as fuck
Bingo game now in python play as much you want :) no need to give me credit it's open as fuck

Bingo-py-game A game coded with Python Introduction This is a Terminal-based game currently in its initial stage. I am working on adding more efficien

A Gomoku game GUI using pygame where the user can choose to play against another player or an AI using minimax with alpha-beta pruning

Gomoku A GUI based Gomoku game using pygame where the user can choose to play against another player or an AI using minimax with alpha-beta pruning. R

A python-based multi-player online educational game for students to play in a class or club setting.
A python-based multi-player online educational game for students to play in a class or club setting.

Kurono (codename: aimmo) Code for Life has been developed by Ocado Technology as a free, open-source project to inspire the next generation of compute

Easy and fun game to play a bit. Written in python
Easy and fun game to play a bit. Written in python

NumGuesser Easy and fun game to play a bit. Written in python

SpiderArcadeGame - A game where the player controls a little spider who is trying to protect herself from other invasive bugs
SpiderArcadeGame - A game where the player controls a little spider who is trying to protect herself from other invasive bugs

SpiderArcadeGame - A game where the player controls a little spider who is trying to protect herself from other invasive bugs

Owner
Xin Yu
First-Year at the University of Melbourne, Bachelor of Science (Computing and Software Systems).
Xin Yu
Hexagon game. Two players: AI and User. Implemented using Alpha-Beta pruning to find optimal solution for agent.

Hexagon game. Two players: AI and User. Implemented using Alpha-Beta pruning to find optimal solution for agent.

Anton 1 Oct 18, 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
WordleHelper suggests words to help players better enjoy the hit game Wordle

WordleHelper Introduction WordleHelper suggests words to help players better enjoy the hit game Wordle. Both the general mode and the hard mode are su

Shao-Yu, Chu 5 Jun 2, 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 correct position. This program helps solving wordle problems.

Abhishek 2 May 21, 2022
XO game with server, client and visualizer for AI bots.

XO game with server, client and visualizer for AI bots.

Ali 4 Jul 14, 2022
Simulate a Monopoly game to generate the probabilities of landing on each square.

Monopoly-Probabilities Simulate a Monopoly game to generate the probabilities of landing on each square. While this project originally was inspired by

George Waters 2 Jan 4, 2023
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

null 3 Oct 25, 2022
Deliver buycraft orders to players across the map in minecraft servers using baritone

Deliver buycraft orders to players across the map in minecraft servers using baritone

synthels 1 Nov 14, 2021
Utility to find games owned by all (or at least some) of the passed players.

SteamCommonGameFinder Utility to find games that are owned by all (or at least some) of the players you pass into this programm. You can already find

Daniel O'Grady 4 Jan 4, 2022
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

null 4 Sep 12, 2022