This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

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

hoary(25)
Published in
#turkey
Words
237
Reading
2 min
9y
Listen to this post
~2 min

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...

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