Activity

ancamasi.2345

Basically, I added the Castling function.
I’ve also modified the saving system, because of the new changes.

Attachment
0
ancamasi.2345

Shipped this project!

Hours: 7.63
Cookies: 🍪 109
Multiplier: 14.28 cookies/hr

Basically, this is a chess game for two players locally, in the Command Line Interface (CLI) style.
About the things I built:

  • A LOT of if-elses about the chess rules, about every single piece movement, and some special moves like En Passant and Pawn Promotion;
  • Some UI resources, like colors in the board and the custom pieces.
    Learning how to represent every chess rule in programming language was kind of difficult. Also, I needed to adapt the project for international viewing and learned a little about publishing codes online. But I’m really proud that a project for free moments and “playing a little” has become something so great.
ancamasi.2345

Basically, I added a feature to mark on the board what was (the opponent’s) last move. I also added the en passant functionality, and I am making a process of changing the saving of games to support castling in the future.

Attachment
0
ancamasi.2345

THE COLORS UPDATE! 🌈
I finally added some colors at the game. Now, some messages are better.
I’ve also adjusted the README and solved some coordinates bugs.

Attachment
0
ancamasi.2345

First of all: THANKS FOR THE FEEDBACKS! Most of the recent updates happened thanks to them. Please continue voting and sharing your experiences.
Basically, I added a draw option and I resolved some of the reported errors.
AND, I updated the online version of the game, available on https://onlinegdb.com/aZ6Y7iAGD (the link in on the README too).

Attachment
0
ancamasi.2345

Shipped this project!

Hours: 13.71
Cookies: 🍪 80
Multiplier: 6.9 cookies/hr

“I’m learning this old programming language… Why not create a Chess game on it?”
I create this game because I just wanted to practice my computer science knowledge.
I learned a lot of things about publishing games online, coding, and obviously, A LOT OF CHESS RULES!
The project is kinda complete. I’m really proud of myself by making this 🙃

ancamasi.2345

I changed the representation of each piece from the letters to the icons for each one on the chess board!
I’ve also added the stalemate detection (when the king isn’t on check, but there are no legal moves).

Attachment
1

Comments

Anass Zakar
Anass Zakar 3 months ago

omg another one coding chess! we should make a private club of chess coders

ancamasi.2345

I’ve finished the translation of the game! Now, the users can choose between English and Portuguese at the beginning of the game!
It was a little time-consuming (and tedious), but the result is admirable 🙂
The updates are on the latest release: https://github.com/acms2345/Xadrez-em-C/releases/tag/v1.2

0
ancamasi.2345

I’m FINALLY making a translation of the game to English.
The updates aren’t on the GitHub release or repository yet, because I want to finish the translation before I make this. But I intend to do it soon!

Attachment
0
ancamasi.2345

Now, I’ve added an internal mechanic to better verify checkmate.
During this time, I also made some minor modifications to the README.

0
ancamasi.2345

I’ve added a system to check for moves that leave the king himself in check (a illegal move in Chess rules, but it was possible on the game).
I’ve also made a workflow to generate the executable versions of the code, so you guys can test it!

Attachment
0
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!

Hours: 2.22
Cookies: 🍪 15
Multiplier: 6.66 cookies/hr

“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

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