A simple game in C #///// Lucky Seven

in turkey •  7 years ago 

Hi everybody !

I programmed a little chance game for you guys. Lose your money at home, not in Vegas .I will describe the project in pieces and I will support the picture. Finally I will share with you the github url of the progeny.

Let's start !

Step 1

This application will be a windows form application, so we will create a padding.

luckySevent-onepicture.PNG

Step 2

In this step I created an object named rnd from the random class for the game. I will use this object in the playground. Still, I wrote a little code to make the easy selection the first time the form was first loaded. I just modified the background color part of the form.

luckySeven-2.PNG

Step 3

In this step, the controls to be done when the play button is triggered are written. If you are playing in which mode in the meantime, intervals are given for the random number generator.

luckySeven-3.PNG

I added a few edits and an extra label field. I added buttons corresponding to the radio buttons next to it.
luckySevent-onepicture.PNG

Step 4

the final version of the code block and its controls is what you see in the echo.

luckySevent5.PNG

a few images from the game

gamescreen5.PNG
gamescreen1.PNGgamescreen2.PNGgamescreen3.PNGgamescreen4.PNG

extensions I use for images

joistik play :https://www.flaticon.com/free-icon/joystick_188144#term=joystick&page=2&position=56
night mode 1: https://www.flaticon.com/free-icon/night_624106#term=night&page=1&position=56
day mode :https://www.flaticon.com/free-icon/sun_169367#term=sun&page=1&position=6
easy mode : https://www.flaticon.com/free-icon/battery_148872#term=level&page=1&position=39
medium :https://www.flaticon.com/free-icon/battery_148870#term=level&page=1&position=36
hard mode: https://www.flaticon.com/free-icon/battery_148869#term=level&page=1&position=35

Finally, the project is open source on GitHub.

https://github.com/uaperk/LuckySeven1317756_be52_6.jpg

to discuss in new projects and applications...

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @hoary! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:

SteemFest³ - SteemitBoard support the Travel Reimbursement Fund.

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @hoary! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!