Pages

Tuesday 22 November 2011

Game Simulation:Implementing Simulation of objects using Python and Ruby

                            Here we are creating some objects. These objects resembles some animals in the real world and part of a food chain. Consider these objects are


         Worm
         Grass Hopper
         Frog
         Snake
         Bull Frog
Each have some initial position in a (9,9) co-ordinate and some specific directions(E,W,N,S). In each clock objects will move. For this there is some specific rules. Worm and snake only move one point in either x or y direction.Frog,Grass Hopper and Bull Frog skip one unit that means they jumps either x or y direction.When they reach the boundary they should change their direction to either left,right or reverse. As we said these all are part of a food chain. So if any one reaches same position eating should takes place according to food chain. The chain mention that grass hopper only eat worms,Frog eats only grass hoppers, Snakes eats both frogs and grass hoppers,finally bull frogs are massive frogs they eat both snakes and fogs.

To get my Python project code visit:https://github.com/aneeshktry/Hunting-Game

To get my Ruby project code visit:https://github.com/aneeshktry/Hunting-Game-Ruby-
Graph-Vertex-Coloring:Application For Coloring the vertexes of an Undirected Graph using minimum number of colors


                            Graph-Vertex-Coloring is a simple web application for coloring an undirected graph using minimum number of colors. It  color the given vertex of a graph using proper color algorithm.

                             The front end of the project developed using HTML5. The drawing field is implemented using a special feature of HTML5 known as canvas. We can draw the vertex of the graph by double clicking on the field. To draw an edge we need to click on the first node,drag and release on the next node. JavaScript uses for drawing the graph.

                             The algorithm is implemented using python.After drawing an edge we are creating an adjacency list. sending this adjacency list to the server side. The server side using google-appengine. The algorithm keeps a list of available colors. Each time after getting the updated adjacency list algorithm checks for the available colors. This process continues until all vertex get colored with minimum colors.



To go to my application visit:http://www.appgraphcoloring.appspot.com/

Simple URL Shortener:A Url shortening Application using Python and Appengine

             

                    URL Shortner is a simple web application. It takes a large URL and provides a fixed length short URL. The front end is implemented using HTML. it contains a text box for accepting the URL and a submit button.

                    A web application needs a server,that manages the requests and store data. Here google-appengine serves  as server. The server side is implemented using python. Server side mainly contains 'get' and 'post' methods. In the first handler get method uses for rendering the HTML page. Post method uses for accepting the URL,process and store the data to the database. Data store acts the role of database. Second handler contains another get method which uses for redirecting the page.


visit my github location to get the project code:https://github.com/aneeshktry/Url-Shortener

To see this application visit:http://www.pythonurlshortner.appspot.com/