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
- Host: GitHub
- URL: https://github.com/rasweb/c-moneygame---assignment
- Owner: Rasweb
- Created: 2025-01-27T14:42:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-04T14:44:48.000Z (over 1 year ago)
- Last Synced: 2025-09-03T12:54:28.595Z (10 months ago)
- Topics: c
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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?
```