Monday, December 29, 2008

World of goo

WORLD OF GOO

Wondering what it is?
comics???
cartoon???

Ya a sort of ...

blending of cartoon and comics....

But it is a game...

small one but interesting

it was during the exam time that i started playing it
when tension builds up in mind of the exam, this gave strength and found playing this relieving mind

but later on dint get time to continue playing
and during this christmas i finished playing it

Its all about goo balls and its world

In my opinion the creater might have intended of making the players aware of the ways in which we pollute
our world and what has to be done
Game itself starts with a quote "Make me dirty now"
The itself is well laid giving hints in each stage (which is too hard to decode).
The player has to understand these hints-given in the 'sign painter' as it is called.
Skills like logic and creativity of the player is often tested during the course of the game.He has to put the mechanical laws that he has studied for completing certain stages.

As the game progresses it passes through all the strategies of the evolution of world
The building up of industries which no one knows and only is revealed when finishing the levels
the first era was that of the ancient days in which the pollution was less and in the game,basic methods of polluting
More credit goes to making extra polluting goo balls
As the game progresses the extra collected balls gets accumulated in the coorporation which later serve for building up the establishment
where we take advantage of the world getting polluted and our industry flourishes
It has four chapters of varying difficulty
Introduction of more and more and new polluting agents and substances in each part of the chapters
Then in the fourth chapter its the new digital world, and the pollution too is digital in nature


The game ends with the hope that one day man might realise about the aftereffects of his life style
in which he neither bothers about the world and others who are living with him.All his actions causing harm to the nature
It is simulated in the game
In the last section after the four chapters which mainly is the domination of world of goo
it is the end of the world of goo
Every factor causing pollution recycled and the world of goo coorporation destroyed.

Then there is this telescope which probe the sky looking for that light which makes the world a new place where man lives with care for the world.
Bringing light and hope to the earth by destroying the last bit of the impurities and wiping the world clean

This is what i felt after playing the game.The designer has done a great job. This game is worth playing. It is rated 9.5.

Sunday, November 23, 2008

Alumni adding flavour NITC

"Life After NITC"

I still have three more years here in NITC
I laughed
Why should i be thinking about it now
That was my first question.
It was me who first saw the poster as i was the one to stick it on all the notice boards here in hostel.
I dint want to spent my time listening to such bluffs.
So it was when i was going to take bath, my friend called me for the talk.
At first i was like "Oh man,Have to study, no i am not coming"
But to say the truth i would have missed a really excellent interactive session with our nitc 'pass out'
They were four of them giving their experience here and when they got out of here.
Their talk session was informative and interestiing.All of them are currently doing their mba in iim calicut.
They expressed their view on talking an mba or not and what time is suitable to take it.According to them its all one's perspective to take the rite time to do mba.
Be it anytime ,right when you passout from college or after some years of work.If one is taking mba just he get out of the college, he is still a student so its easier to him for continuing study.But for someone who is coming after some years of work ,it might be little difficult for him to get on to play.

MBA is entirely a different area of study for a btech pass out.It adds one more degree to one's resume and make an engineer capable of managing a business.though i dont know much about it.I am still doubtful of taking an mba or not.I confident that sometime during these times in Nit calicut i would reach to a conclusion

Actually i had planned to post this one month before.but due to lack of time during exams i could'nt do it

Friday, November 21, 2008

tower of hanoi recursive

#include
#include
using namespace std;
char left[20],right[20],middle[20];
void Hanoi(int n,char from[20],char to[20],char by[20]);
void print(char temp[20]) //this is to print the towers as given in the parameter
{
int size=strlen(temp);
int i=size-1;
while(i>=0) //since in this program i am storing the least value at the zeroth index it is good if the printing takes place in the reverse oreder as in the output
{
cout< i--;
}
cout<<"\n";


}
int main()
{

int n;
strcpy(::right,"\0");
strcpy(::middle,"\0");
cout<<"Enter the no of discs in the tower of hanoi (should be less than 10)\n";
cin>>n;
if (n>=10)
{
cout<<"Quiting\n";
return 0;
}
char init='1';
int i=0;
while(i {
::left[i]=init;
init++;
i++;
}
::left[i]='\0';
cout<<"Tower1: ";
print(::::left); //printing the initial state of all the towers
cout<<"Tower2: ";
print(::middle);
cout<<"Tower3: ";
print(::right);
cout<<"\n\n\n\n";
sleep(1);
Hanoi(n,::left,::right,::middle);
return 0;
}
void Hanoi(int n,char from[20],char to[20],char by[20])
{
if (n==1)
{

int size;
size=strlen(to);
int i=size+1;


while (i>0) //this is to make ready the insertion point for the element that has to be added
{
to[i]=to[i-1];
i--;
}
to[0]=from[0]; //the top most element of from will be added to the top position of to
size=strlen(from);
while(i {
from[i]=from[i+1];
i++;
}
cout<<"Tower1: ";
print(::left); //printing the present condition of all the towers
cout<<"Tower2: ";
print(::middle);
cout<<"Tower3: ";
print(::right);
cout<<"\n\n\n\n";
sleep(1);
}

else
{
Hanoi(n-1,from,by,to); //here, these are the recursive calls to the function Hanoi
Hanoi(1,from,to,by);
Hanoi(n-1,by,to,from);
}

}

permutation of letters, including repetition

#include
#include
using namespace std;
int count=0,top=0;
char tempstr[50][50],a_ll_combinations[1000][15];
int checkEquality(char variable,char checking_string[50],int end,int i);
void permutation(int n,char string[50]);
int main()
{ ::count=0;
char string[50];
cout<<"Enter the string\n";
cin>>string;
cout<<"\n\nHere is all the possible combination of string "< int n=strlen(string); //calculating the string length
if (n==1)
{
cout<<"The only possible combination is \n";
cout< }
permutation(n,string); //calling the function
int i=1;
for (int i=0;i {
cout< }
cout<<"The number of combinations printed is "<<::count<<"\n";
return 0;
}
void permutation(int n,char string[50])
{
if(n==2)
{
//setting the base case as a small string of size 2
strcpy(a_ll_combinations[::top++],string); //so in the base case two strings are generated
if (string[1]==string[0])
{
::count++;
return;
}
char temp=string[0];
string[0]=string[1];
string[1]=temp;
strcpy(a_ll_combinations[::top++],string);
::count+=2;
return;
}
for (int i=0;i {
if (i==0)
{
strcpy(tempstr[n],string); //this is for saving the string that is passed for an element being at the last position recursively,
} //so that in the next state alteration can be done with the previous one
strcpy(string,tempstr[n]);
if(checkEquality(string[i],string,n,i)==1) //here it checks whether the character which is going to be swapped was already in the nth position
continue;
char temp=string[n-1]; //here, changing the last element in each iteration
string[n-1]=string[i];
string[i]=temp;
permutation(n-1,string); //calling for the permutation of n-1 letters -recursion

}
}
int checkEquality(char variable,char checking_string[50],int n,int end) //this is the definition for the checking for duplication
{
for (int i=0;i {
if (checking_string[i]==variable)
return 1;
}
return 0;
}

Sunday, November 16, 2008

busy life.........

its been long since i posted my last post.
life here in nitc is a little busy
even if u are not doing anything u wont know how time passes
it goes unnoticed
after tathva, major work got over ,since then we were left to us
calls from the seniors got less but not for sticking posters for which i was their favourite .
in the next weekend i went home, it was after two months since my last visit to my home ,it was a wonderful moment for me the stay lasted only for two days
then back at nitc
i thought of studying everything from scratch
since then i reduced my extra carricular activites
we had to complete certain assignments
it was in pd that we got four assignments (programming ) each of them with seperate paths
the tuffest one was the tower of hanoi problem
i had the algo with me , it was then all about implementing it
day and night i only had this in mind ,surfing from one error to other and atlast i could make it working
to say frankly i was trying to crack it ever since this semester started but the only thing is that i dint put a lot of work in it ,since it was something like imposed on us through assignment ,i had to
i am giving my code for it in the next post
currently i am trying to remove the second recursive call and change it to an iterative one ,another big task for me
i am currently getting no idea about it ,but somehow i will crack it ,deadline is three days it seems as our exams are starting next week

Friday, October 24, 2008

TATHVA IN ITS FULL THROTTLE

After days and months of waiting TATHVA has started.
its the realization of hundreds of people working together for more than three months.
The preparations had begun way back in may .
After deciding the problem statements then the question was about how to carry out everything.
But with the immense support from the fourth years and the commitment from the second and first years it was all easy.

This year the participation has almost doubled.Even though the unexpected rain is a little problem people find their way under the umbrella making sure that they are reaching their event spot at the right time.

I was assigned to work with the registration committee.
Most important section of any event.
We were always busy with the registration with participants coming from various parts of the country around the clock.
We have to add the information about them in the database and then have to issue their id card with which they can participate in any of the events conducted.
And the work is now going smoothly..............................

Thursday, October 16, 2008

is exam changing our life style?

You mite be wondering at this question.
But its a question concerning all those who are students.
Until before the exam all are free, leading their own happy days,
but its suddenly changing once the exam starts.
The person who is at the forefront of making fun too would sit quietly sit in front of a book and reads.
We cant think of anything else during these days than study because of fear of failing in exam.

Should we change our life style during the exam days?
In my opinion, go according to how you have been doing these days,unless you are not in the least prepared for it .

To cope up with this scenario my advice is to spent everyday with the lessons and it leaves a little work left to you afterward.

For the past one week i couldnt do anything except studying for the exams and now its a pleasure to sit simply without thinking of anything to study

And now its time for me to do some extra works other than curriculum stuff.
Thats all for now..................................

Friday, October 3, 2008

about today

This day was not so eventful
as regular woke up at 7.00 in the morning
as our teacher had gone home first hour was free
then computational combinatorics was a two hour consecutive class our teacher made us do many problems
it was anyway useful getting acquinted with different types of problems
then it was electronics
to say truth it was first time in this course that i slept in the class
i often thought how students sleep without knowing themselves
while sleeping i drew something on the note
hihihii
i dont know whether sir noticed me sleeping in the class

and afternoon was free for our batch students
then i started sitting in front of the computer once again today
did two of the assignments
this was the first time i was troubled by the so called 'segmentation fault'
though it was a simple problem it took me quite a long time to figure out the error
it was implementation of insertion sort using a doubly linked list

so i have two more questions left to do
once is the famous towers of hanoi program and the other one is
displaying all the possible permutation of a string given by the user

not thinking to copy down the code from the net
but i will just go through the algorithm
so bye for the time being
good evening

Thursday, October 2, 2008

tathva padwork

Tathva is the annual technomanagement festival of our college(NIT Calicut)
there is this kind of pad work preparation for the tathva
manly the work is for club mathematica one of the clubs
and this year the nature club as well as the civil engineering department is gonna have their stalls for the fest
so yeaterday me too had gone for the padwork
we second years mainly go there for making the juniors do the work
and also a little ragging in the midst
it was a chance to meet these juniors and get acquinted with them
i did not do any ragging , but was watching them
some of us made them play cricket
not the one with bat and ball
we made them assume that they have bat and ball and play
and it was fun watching them playing
as today is Gandhi Jayanti
we asked them to give a speech about Gandhiji
and we troubled them in between their speech
it was really a fun

about first year

firsts year was a busy year
coming to the college as a fresher
was initially afraid of all the seniors
i only new three of them here
one from the second year
one from the third year
and another one from the fourth year
all these seniors were kind and lovely
the first few weeks or rather one month was like a hell

locked up in the hostel as if we were prisoners
wherever we go there would be these securities to accompany us as the facaulty feared we would be ragged by our seniors
but to say the truth these measures dint refrain the seniors from ragging as
they found quite a lot ways to pick us on our way back from the class rooms or rather coming to the class to give us assignments

i remember two seniors coming to the class to give assignments which they ought to submit
they say that they too had to do all these during their first year
should it stand a reason to burden the juniors with their work??
hahahahaha
i wondered why the seniors behave like this
but now i can say(being in second year) what pleasure they get in giving the juniors these assignments

starting continued

i am now doing b tech in computer science and engineering here at nit calicut
lot delighted to say that i am an nitian
thanks to god for all his grace
if it was not him i would not have reached here

computer science is a cool branch
study load is pretty low if you listen well in the class as the core subjects are all related to logic
so if you listen well in the class there is a little left to you for working in the hostel
(which i never do these days)
always think of studying something but never get my mind to do it nowadays
as i have computer with me and internet is available all through the day