Git Product home page Git Product logo

10c-hw1's Introduction

10C HW 1: Siete y medio

This project is a single-player version of the game "siete y medio", where the goal is to draw cards to get closest to a score of 7.5 without going over ("busting"). The player bets credits before each game, and faces an AI dealer who draws as long as their total is less than 5.5. On a win (player > dealer without busting, or dealer busts and player didn't), the player receives twice their bet as a reward. On a draw, the player receives their bet back. On a loss (player < dealer without busting, or player busts), the player loses their bet to the dealer.

The goal of the game is to accumulate 1000+ credits, which means that the dealer must lose 900 credits. Doing so will result in an overall win. Reaching 0 credits, however, will result in an overall loss. All games are logged in an output text file.


Files in this repo:

  • readme.md This file, which explains how the game works.
  • hw7.cpp The main file containing the necessary functions to run the game.
  • cards.h The header file which contains the classes Player, Hand, and Card which are the building blocks for the functions in hw7.cpp.
  • cards.cpp The file containing all the member functions for the classes from cards.h.

10c-hw1's People

Contributors

mixo-lydian 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.