Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Codelearn Roulette

A casino game where the house always wins.

A small C# console project created for Codelearn.

It looks like a normal roulette game: you start with 1000 €, choose how much you want to bet, and decide whether you want to bet on a number or a colour.

But there's a small problem...

You're never going to win.

How it works

The game asks you to:

  1. Choose how much money you want to bet.

  2. Choose between:

    • A number from 0 to 36
    • A colour (r = red / b = black)
  3. Wait for the roulette to spin.

  4. Watch your money disappear.

The roulette then reveals the result...

And somehow, you always lose your bet.

The Troll

This isn't a real roulette simulator.

The result is intentionally manipulated:

  • If you choose a number, the program generates a different number.
  • If you choose red, the result is black.
  • If you choose black, the result is red.
  • Your bet is always removed from your balance.

So the real objective isn't to win.

It's to discover that you've been scammed.

Technologies

  • C#
  • Console application
  • Basic variables and loops
  • if / else conditions
  • User input
  • Simple game logic

Running the project

Clone the repository:

git clone https://github.com/fustcoma/codelearn-roulette.git

Go into the project:

cd codelearn-roulette

Then compile and run roulette.cs using a C# compiler or a C# development environment.

For example, with the .NET CLI:

dotnet run

Depending on your C# setup, you may need to create a .NET console project first and place roulette.cs inside it.

Gameplay

Welcome to Codelearn Roulette!!

You have 1000 €. How much money do you want to bet? 100
You succsesfully bet 100 €

Do you want to bet to a number or color? (n/c) n

What number do you want (0-36) 15

Spinning.
Spinning..
Spinning...

The output is: 16. You just lost 100 €

Seems fair, right?

License

This project is published under the MIT license.

Author

Created by fustcoma.

GitHub: https://github.com/fustcoma

Releases

Packages

Contributors

Languages