spaceshooter

SpaceShooter : Unity 3D game

Though no one seems to be interested in Arcade style shooting games these days when we have Giant games which simulate real world pretty well, but I am sure 90’s kids will be up for this Anyway, again it being a part of my learning

MadDash_Title

MadDash

Let me start by saying it’s a pretty simple and naive game. Conceptually, all that one needs to do is collect power ups before the time runs out and Time goes up with Power Ups.Race against time. Pretty common, huh? Yet it was fun. Trust

sorted Array Via Linked List

Sorting elements of an array via Sorted List

Sorting elements of an array via Sorted List [java] class Link { Link next; int value; Link(int val) { value = val; } } public class SortedArrayviaSortedList { static int arr[]; int i; Link pPrevious = null; Link pfirst; Link pCurrent = pfirst; SortedArrayviaSortedList(int arr[])

sorted Linked List in Java

Sorted Linked List in Java

Implementing sorted Linked List in Java [java] class Link { public int data; public Link next; Link(int value) { data = value; } } public class SortedLinkedList { Link pfirst; Link pCurrent; Link pPrevious; public void SortedInsert(int value) { Link newLink = new Link(value); pCurrent

queue in Java using LinkedList

Queue in Java using LinkedList

Implementing Queue in Java using LinkedList [java] class Link { Link next; int value; Link(int val) { value = val; } } public class QueueLinkedList { Link pfirst; Link pLast; public void enqueue(int value) { Link newLink = new Link(value); if(isEmpty()) pfirst = newLink; else

doubly list in java

Double ended List in Java

Double ended List in Java [java] class Link { int val; Link next; Link(int value) { val = value; } public String toString() { return “{” + val + “}” ; } } public class DoublyList { Link pfirst = null; Link pLast= null; public

print numbers without using loops

Java program to print counting without using loop

Print counting till n (40 in this case) without using loop Solution : Recursion [like-gate][/like-gate] [java] public class PrintTillHundred { public static void main(String…s) { recurse(1); } public static void recurse(int i) { if(i>40) { System.out.println(“Number greater than 40, Program ending……….. “); return; } else

Stack via LinkedList in java

Implementing Linked List based Stack in Java

Linked List based implementation of Stack in Java [java] class Link { int value; Link next; Link(int val) { value = val; } } class StackLinkedList { static Link pfirst =null; public static void push( int val) { Link newLink = new Link(val); if(pfirst ==