Chess in C banner

Chess in C

6 devlogs
6h 24m 32s

A recreational, ongoing attempt to create a simple two-player local chess game in the C programming language.
This project has been under development for several months, but much of its progress has not been tracked by Wakatime.

ancamasi.2345

I try to explain better on the README how to use my game, including how to download and compile it.
I also made an adjustment to the 50-move rule (It wasn’t working because I forget to reset the variable after the turn).

Attachment
Attachment
0
ancamasi.2345

Shipped this project!

“Why not create a chess game on C programming language?”
I wanted to make this this two-player local game to practice my knowledge of the C programming language, since I’m studying it at school. I learn about pointers, files, about publishing and editing codes online and, consequently, MANY OF CHESS RULES!
It’s still a little short of having all the rules of chess. But, considering it was made purely for entertainment, I already think it’s quite good.

ancamasi.2345

Finally, I adjusted the board to the standard chess layout (white pieces in positions 1-2 and black pieces in positions 8-7).
I also fixed some data inputs after becoming aware of certain bugs.

0
ancamasi.2345

I made some modifications to the code structure. I changed the name of the chess.c file to game.c, added the game.h file, and I’m trying to organize the code better.

Attachment
0
ancamasi.2345

Shipped this project!

I’m studying the C programing language on school, so I just think “why not practice my skills by creating a chess game in C?” ♟️
Obviously, it wasn’t just about the C language: I needed to study to chess rules and comprehend how to apply them in the project. But now IT’S ALIVE!
I still need to add some of the chess mechanics, but most of them are already in the code! You can test it through the link https://onlinegdb.com/dUODuECUZ
Have fun!

ancamasi.2345

I basically edited the README and some parts of codes to add some advices in English. Now, there’s a entirely version of the README in English, keeping the Portuguese version.
I plan to add more English information on the source code, but currently it’s entirely in Portuguese.

Attachment
0
ancamasi.2345

Basically, during that time I tried to create a demo link so you could test the actual version of the game. In the most of the time, I tried to share the project on GitHub Sites using a HTML integration, but that didn’t work.
So, I put the demo on OnlineGDB. The link to access the demo is https://onlinegdb.com/mCVxTRf8M (no login or download required).

Attachment
0
ancamasi.2345

I basically added the 50-move tie-checking system and fixed a problem I was having with the initial two-square pawn movement.

Attachment
0