Connect Four in C

And here we are again!

After all these cryptographic methods I was thinking: maybe this blog is becoming too much serious. I need to give a little of fun to my poor readers.

For this reason I recover from the grave an old program in C that I created in my Bachelor. It was in Italian language, but… Come on! You don’t have to worry! I translate this game in English and I correct some small bugs. So! Have fun!

Eh?!? I didn’t say what about is this program? Really? Oh…

As you can read from the title is “Connect four” on terminal. A simple picture so you can understand better what I am talking.

This is connect four

It is a turn game 1 against 1 where you need to be the first to insert four coins in line horizontally, vertically or diagonally.

In my version you can play against a friend or, if you are alone, against a little smart pc. It is not a very high AI, but it can provide a small challenge.

At the end of every match, a score and the time used will be saved on your pc. In this way you will be able to recover easily the chronology of your matches!

fourconnected
Full of smiles! ūüėÄ

Instructions and rules are also provided inside of the game. You can download it by here.

Connect Four in C

Give a try and let me know what you think!

Your sincerely,
Stefano Martin

Share This:

AES with C

Welcome everybody again!

This week is a cryptographic period and I want to present again AES.

AGAIN?!? Ok… I can understand your concern. Already in the last week I gave you a very similar program in Java. But there was something that bothers me.

When I want to protect something, I want to be able to protect everything. With Java I¬†was quite happy to be able to encrypt any type of language (Chinese, Russian, Italian, Arabic, and so on). But it was not enough for me. I didn’t want¬†only to encrypt simple text files, but even pictures, video or more complicate files.

AESC
A simple example of how to use this new program

For this reason I recover an old friend called C and I went brutally on the basis of the file code. To overcome¬†the simple letter structure as¬†‘A’, ‘b’ or ‘ŤÉ°’ and transcend in the fantastic world made of zeros and one, i.e. something like this 10101010101.

I am happy thus to make you available a new program in C, downloadable without any problem by here.

AES-128, AES-192 and AES 256, this time in C

Which are the advantages of this version?
+  You can encrypt (and decrypt) any files.
+  It it faster than Java
+  It works fine in Linux too (here the download for Linux version)

Which are the disadvantages?
Р The application is not user friendly (you need to use the terminal)
Р It is a little harder to select the file that you want to encrypt (or decrypt)

Give a try! But be careful! I will give you the same alert of the last time. If you encrypt a file and you delete the original one (DON’T DO IT), then you can recover your original document only if you own the password. I can’t accept any responsibility or liability for damages arising from the misuse of this program.

Your sincerely,
Stefano Martin

Share This: