/simple-games-in-c
[Sorted by: Selected]
Game development in C Programming language is best for the begineers. Although other programming languages such as Python, C++/C#, and Java are the high performers for developing games, C can be used for light and simple game development, which I recommend to use it in the begineer phase.
In this blog, I am presenting two simple games made out of C, with the source code. The structure and logics are the same in both games, so it will be easier to understand the algorithm.
Rock, Paper and Scissors is the very first game I had made in C. It is based on CPU vs User (1 Player) where CPU chooses random options out of Rock, Paper or Scissors. It is simple to understand, and not as complicated as other types of games. The mechanism of this game is based only on the 3 random numbers that is generated for the CPU, deciding the winner, and recording the results in a file.
Source Code: [extension: c]
Dice Roll is another simple game in C. The mechanism of this game is same as the previous game, based on the random numbers function. It is also a single player game (CPU vs User) where user has to press a key to roll the dice, and for the CPU's roll, random number out 6 numbers is chosen.
Source Code: [extension: c]
These games are simple with less than 150 lines of code. I personally recommend to try these methods and logic to build games in C. I have made the whole project on the same topic. Click the link: View PDF file
External Links & Tags:
Project PDF
C Programming