Showing posts with label Game. Show all posts
Showing posts with label Game. Show all posts

Saturday, 28 March 2015

Dots and Boxes game with python and pygame!

Yes! it is Dots and Boxes this time and its really working and that too without those complex algorithms that you get to see when you search the web.

My Algorithm:

1. Let the user play first.
2. When the computer gets its turn, it first searches for boxes that can be completed in one move.
3. It completes one of such boxes if found else it finds out the 'two-sided' boxes (those which have two sides marked) and stores in a list.
4. Now the list stores the boxes which will lead the computer to lose one precious point to the user.
5. The computer dares not even to touch the boxes and finds the lines which are safe to mark.
6. If the computer finds no safe lines then it finds out the chains of boxes which the user can form if the computer takes its turn.
7. Then it finds out the smallest chain and marks one line in it to minimise the loss.
8. This way, the computer has a good chance of winning and this is an enjoyable game.

HIT +1 IF YOU LIKE THE IDEA

Give it a try: Download




Tuesday, 30 December 2014

War Of The Numbers - New version! (Update)

This program here is an update to the older war of the numbers.
It contains many changes:

Power-ups : The Golden Shot, The Shield, Freeze , Reverse

Code  Optimization : Performance is now better due to code optimization which now doesn't wastes any processing cycles.

Menu : A Menu created.

Improvements coming in the near future:
Full-screen, Better sound, Objectives and achievements, High Scores, etc.

Download here: http://goo.gl/JHwRmS

The game is action:





Sunday, 30 November 2014

See the new game I'm working on! - Fruits everywhere with pygame...

This is another game which is purely made with python and pygame.

This is a fruit collection game that would help you kill time and also learn some programming tactics if you see the source code carefully.

The code is self explanatory so i didn't comment.
I will if someone wants me to do so.

The game consists of an empty fruit basket which you need to fill up by collecting the free falling fruits. Beware of the bombs which take away 10 Scores and the cool bombs which rip you of one live. Lives are precious and you get three.
Lost a life? You have a chance to get one falling along those fruits but it takes a long time to appear.

Your high scores are stored and don't get cleared when you close the game.

This version currently works only with linux (posix). Sorry for windows users.
E-mail me here and I will post a version for windows too! if you find the game worth doing so.

The game ain't tough. It's fun. Enjoy...
Download : datafilehost




Saturday, 1 November 2014

War of the Numbers - Game using Pygame

Welcome, Reader

I have another program to share. Its a game.

The magic number - 0 (ZERO) has waged a war against all other digits for not being included in Natural Numbers. You are the zero! You've got to help zero defend itself.

The natural numbers' army is coming. Save the zero.
The RULES:
You will get 50 score by default.
Shoot the numbers and increase the score. The increment in score is equal to the number shot.
You got to save yourself from colliding with other numbers or you die.
If the numbers break your defense, they explode and there is a decrement (equal to the value of the exploding number) in the score.

Remember that you die if the score equals to ZERO!

You get 11 shots and have to reload after using them. Reloading takes 3 seconds.

I named the game 'War of the Numbers'

So get it going!

Download 'War of the Numbers': Datafilehost

See it in action:








Images from http://www.iconarchive.com