GithubHelp home page GithubHelp logo

jcoupalk / blackjackgo Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 16 KB

Blackjack terminal game written in Go

License: MIT License

Go 100.00%
blackjack-cli blackjack-game blackjack-simulator gambling-game game go golang terminal-game

blackjackgo's Introduction

BlackjackGo

Welcome to BlackjackGo! This project is a simple yet exciting implementation of the classic Blackjack card game, written in Go. It features a text-based user interface and an intuitive gameplay experience.

Features

  • Text-based Blackjack game playable in the terminal.
  • Simple and intuitive user interface with color styling.
  • Automatic handling of game rules including scoring, hitting, standing, and dealing.
  • Soft hand score detection and display.
  • Dealer play logic according to standard Blackjack rules.

Table of Contents

Installation

  1. Download the binary with wget:

    wget https://github.com/JCoupalK/blackjackgo/releases/download/1.0/blackjackgo_linux_amd64_1.0.tar.gz
  2. Unpack it with tar

    tar -xf blackjackgo_linux_amd64_1.0.tar.gz
  3. To start the game, run:

    ./blackjackgo

You'll be presented with the game interface in your terminal. Follow the on-screen instructions to play.

Gameplay

  • Press 'H' to hit (draw a new card).
  • Press 'S' to stand (end your turn).
  • Press 'R' to restart the game after it ends.
  • Press 'Q' at any time to quit.

The game follows standard Blackjack rules. Your goal is to beat the dealer's hand without going over 21.

image

Build

To build BlackjackGo, you need to have Go installed on your machine. If you don't have Go installed, you can download it from the official Go website.

Once Go is installed, clone this repository:

git clone https://github.com/JCoupalK/blackjackgo
cd blackjackgo
go build .

Contributing

Contributions to BlackjackGo are welcome! Feel free to fork the repository and submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

blackjackgo's People

Contributors

jcoupalk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.