Simple Coin Flipping Game

I created a simple coin flipping game for my AP computer-science class.

Since it was made in an educational environment I decided it would be cool to give it out to people and open source it so people can also learn from it.

There is a tad bit of documentation in it, but not extensive… not sure what anyone would want to change anyways… Also, it is all client sided.

7113a7b2dc25ff14b63e4cf53d17e8f0

44 Likes

Awesome! if only we got to use roblox is our computer science :sob:

21 Likes

The extreme urge to throw huge amounts of money are real. Just kidding, I do like playing games of chance, even with no real reward it’s like simulating chance as you say and it can be interesting to see it unfold. I wish you would do a game of 21 because that can be nail bitingly exciting either way it’s very nicely designed.

Reminder, when the fun stops, stop.

6 Likes

Looks good, although the flipping animation looks a bit unnatural, since it just suddenly jerks around.

5 Likes

This looks very great! While i find no real use for a coin flipping feature to be used in any of my games, it’d be real fun to look in the code, i’ve learned alot from sources on devfourms, but this takes the cake for being the most interesting one i’ve read in a while.

3 Likes

Thanks, also, feel free to critique my work.

Amazing! I was working on something for our computer science class that was made in Roblox too (We were allowed to use anything we wanted, so I chose Roblox) and then randomly our school blocked the Roblox domain, lol

2 Likes

Yeeaaaaahhh… apparently I wasn’t supposed to use Roblox… but she graded my check-in assignments as 100%… I’m guessing the final project will not be :sob:

Also, the college board will accept this, just not the school :neutral_face:

4 Likes

Kinda assuming your final project might be something quickly made in “Snap!”, if they won’t accept it lol, either way good luck if you do have to restart! It looks amazing!

Also would be cool if Roblox worked with the CollegeBoard, might improve the education views on Roblox, just a thought.

1 Like

This is great however it is very inconvenient to have to type everything back in every time even if you want to roll the same.

You can easily change it, there is a line that resets it to Text = " "

Cool! Just wondering, how long did this take you to make?

Simple. yet effective! Nice work.

now I wish my CS class allowed roblox god dammit

3 Likes

A couple hours throughout the day.
I wouldn’t be able to give an exact time, I would suspect more than two hours and less than six.

It looks so cool! Can’t wait to gamble with this piece of art!

1 Like

Yeah, sorry if I’m getting a bit nerdy here on the gambling topic. Your brain releases a chemical called endorphins and it’s a chemical which makes you thrilled for gambling (it’s also the same chemical that get’s released when you take drugs) and that’s why people get addicted they think that they will win a jackpot when really it’s the only top 1%. That’s how people get addicted, and that is why gambling companies make loads of money. (I believe gambling is against the ToS anyway). :nerd_face:

3 Likes

This is why we need to make areal robux gambling casino! Great idea! Just made all of my money! (just kidding)

2 Likes