Can anyone help me how to make a simple roulette without graphics in C????I need some help because I am a begginner ..I am using Codeblocks 10.5 compiler.
Can anyone help me how to make a simple roulette without graphics in C????I need some help because I am a begginner ..I am using Codeblocks 10.5 compiler.
Please if anyone can help me how to make a simple roulette without hraphics because I have it in a school project...In the beggining of the roulette it must be entered the age from the user of this roulette...
Ok, there's a standing rule here that we don't do people's homework for them.
Give it a shot, make your best effort to solve it on your own...
Then if you run into problems, pose your code (in code tags please) and I'm sure you'll get some help.
I am not telling you to do my homework.I am only searching help!
If noone helps me here where can i search for help????
Do you know the rules? Roulette - Wikipedia, the free encyclopedia
Perhaps 3 primary functions
- placeBets()
- spinWheel()
- payout()
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Since this is my first program and I am a very very beginner I would like to know how could I create a simple roulette without graphics.I am also trying to make a place where the user who uses the roulette types his age and it must be 18+ or he cant play roulette...
Ok... have you ever written a program, in any language, before?
If not, you should start here...
Cprogramming.com - C Made Easy
This covers the very basic fundimentals of C programming and should get you off to a start with your project.
I want to know which functions except the basic ones could help making a roulette??
C doesn't know or care about roulette, so there is nothing "this is good for implementing roulette" to tell you.
What you get is a number of primitives you can put together in many different ways (including many different simulations of roulette).
For example, spinning the wheel might involve calling rand()
FWIW, this seems to be a hard problem for "your first program".
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Y'know what... my first program was "Hello World" which every C programmer should write. From there you add this, change that, learn new stuff... and eventually you find yourself writing more and more complex programs until, guess what... you've written something that's actually useful.
There is no practical way to simply start to the top of the totem... there is always a climb involved.
Roulette is actually a fairly simple program... essentially requiring some control loops, a spin the wheel procedure, some knowledge of the rules for scoring and some means to display results. There is nothing there that cannot be done with the C libraries and reserved words.
So, I'd say you should settle down, learn the language --learn programming-- then tackle your project....