Last Under #CodingOf208, I made a simple hit and try game called “Battleship” (BattleShip – #CodingOf208), Battleship helped me a lot to learn about random numbers, file handling. But after after making it, I was kind of out of ideas on what to make next, so I turned over to HackerRank and earned Level – 4 Badge in Algorithms (Profile).
Now on next few days, I wanted to do some “project” kind of stuff.
So one day, I saw my friends playing Chess. I wondered these games are available on PCs, mobile phones, too! Well someone must have written code for it!
So I thought well, let me too give it a shot!
I decided to build something similar (because I wasn’t sure if I can make the exact game!)
Then one thing led to another, I first thought only to move the pawns and that’s it!
After getting success with pawns, I thought okay let’s try knights! then King, then rooks, then bishop and finally Queen!
This game is ready for all Linux-based(terminal-based) and for non-terminal based operating system.
There are many problems which I faced during the making of this game….
The first one is the moving of Queen. Man she was not at all ready to move! Spent hours to convince her to move!!
When I finally convinced her to move, she was moving randomly! Anyways, She was finally convinced to cooperate!
When all pieces where moving as desired, they were not able to distinguish between friend and foe! But that was resolved quickly.
After making the pieces to move, I decided to take the game to another level……
I started reading all the rules which govern chess, En Passant, Castling, to name a few!
The game is equipped with all these rules…..
You can perform En Passant, Castling, surrender to other player, and also draw the match if both the players agree.
In windows version of the game, there is one special extra function of voice speaker! During the play of game the computer will instruct you through the game! I was not able to add voice feature to Linux version because I could not do it, but I will definitely add the feature as soon I get how to do it!
This voice feature I personally found really cool…….
This slideshow requires JavaScript.
Above is the screen shots of the Linux-Based game…..
This slideshow requires JavaScript.
Above is screen-shot of Non-Linux Based OS….
Both the games(Linux and Non-Linux) have there own goodness, my suggestion is that you download both of the games(Linux and Non-Linux) and see the difference your self(if possible)!!!
Here is the link for the game:
If you download the file in the form of ‘.zip’, you might wanna UNZIP it!!
Let me know your thoughts!!
Program Time!! – Solution
Program Time!! – Solution
Program Time!! – Solution
BattleShip – #CodingOf208
Programming Languages – 2016
Pseudo Codes And Algorithms….
Decisions!!! Decisions!!!
Good Programming Practices…..
Under The Hood, Its All Binary!!
Computers!! Where Did These Come From??
Chess – #CodingOf208 Last Under #CodingOf208, I made a simple hit and try game called "Battleship" (BattleShip – #CodingOf208…