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

Roll A Ball

Roll A Ball: Unity 3D game

Yet another Unity 3D game for beginners coming straight from Here. You can watch the tutorials at mentioned link. Try Playing The Game Here Enjoy Playing around the code and the ball 😉

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 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 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 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 pLast.next

doubly list in java

Double ended List in Java

Double ended List in 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 void

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 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 { System.out.println(i);

Stack via LinkedList in java

Implementing Linked List based Stack in Java

Linked List based implementation of Stack in 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 == null)

series in java

Java program to print the given series

Print the given series in java class Series { int j = 2; static int k = 1; static int l=0; public static void main(String…s) { for(int i = 0; i <10; i++) { if(i%2 != 0) { l= l+2; k = k+l; } else