An open API service indexing awesome lists of open source software.

https://github.com/rasweb/c-moneygame---assignment

My first C project connected to my System developer education
https://github.com/rasweb/c-moneygame---assignment

c

Last synced: about 2 months ago
JSON representation

My first C project connected to my System developer education

Awesome Lists containing this project

README

          

## Table of contents

- [Overview](#overview)
- [Coin Flip Assignment](#coin-flip-assignment)
- [Built with](#built-with)
- [In Action](#in-action)

## Overview
### Coin Flip Assignment

A C assignment connected to my system developer education at STI, also my first c assignment.
This is a Coin flip game where the user has a balance and can bet money on heads or tails.
Built using visual studio code so all the files are .cpp files.

### Built with

- C
- srand (randomizer library)

### In Action
This is how a run would look like:
```
You have 100 SEK. How much would you like to bet? 10
What do you bet on (h/t): h
Tossing the coin...
It is tails.
You have lost 10 SEK
You have 90 SEK. How much would you like to bet? 20
What do you bet on (h/t): t
Tossing the coin...
It is tails.
You have won 20 SEK
You have 110 SEK. How much would you like to bet?
```